Hi Frederick,
Thanks for the response.Yes primary key was not set.I set it and it
worked. :)

Hi Walter,
Thanks for the information. :)


Regards
Chandrika

On Mar 17, 5:38 pm, Frederick Cheung <[email protected]>
wrote:
> On Mar 17, 12:33 pm, Chandu80 <[email protected]> wrote:
>
>
>
> > Hello All,
>
> > I have a table invitation_workflows.Entry to this table is done via
> > method send_invite which is called on the click of an Invite button.
> > When I click on Invite button for the first time,entry gets created in
> > the invitation_workflows table.
> > However on subsequent clicks,the following error is shown
>
> > *************************************************************************** 
> > ********************************************************
> > INTERNAL ERROR:Thu Mar 17 17:28:45 +0530 2011 ----------
> > Client Ip : 127.0.0.1
> >  User Id : 101346
> >  Exception : ActiveRecord::ActiveRecordError: ERROR: column "id" does
> > not exist
> >   Position: 322: INSERT INTO
> > "invitation_workflows" ("invitation_workflow_id", "invitor_id",
> > "invited_whom_id", "invited_for_channel_id", "invite_status",
> > "created_by", "updated_by", "created_at", "updated_at") VALUES(NULL,
> > 5088, NULL, 21218, 'P', '101346', '101346', '2011-03-17
> > 11:58:45.553000', '2011-03-17 11:58:45.553000') RETURNING "id"
>
> Rails assumes the presence of a primary key column called id. If it's
> called something else then you need to tell rails this (via the
> set_primary_key method). Have you?
>
> Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to