Ruby on Rails
Tuesday, July 3, 2012
On Wed, Jul 4, 2012 at 12:23 AM, rocky <asharma182@gmail.com> wrote:
We need more information to help you , can you post part of the relevant code? -- 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???
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment