Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read the error and have a look at the line pointed to. Something there is nil.
Look in development.log and check that the parameters passed are correct.
Have a look at the Rails Guide on debugging to see how to debug your
code to find the problem.
Colin