hi

i want to retrive the value its searching for, which is the result_id 
column in the outcomes table.

using

Outcome.find(:first, ...).result_id

i get this >

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.result_id

if i change that to .id

i get 289986 which is a non existent record in the db.




-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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