On Wed, Jul 4, 2012 at 12:23 AM, rocky <asharma...@gmail.com> wrote:

> m getting an error "Called id for nil, which would mistakenly be 4 -- if you 
> really wanted the id of nil, use object_id"
>
> when i'm creating new record,like a topic has many discussions,when i'm 
> creating a new discussions m getting that error..i already assign the topic 
> id as foreign key in discussions controller....please sort out this 
> problem.if u getting the same..how you rectify those errors..and in how many 
> cases this errors are prone to occur???
>
> We need more information to help you , can you post part of the relevant
code?

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Reply via email to