Forum: Ruby on Rails what does the find method return

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris G. (Guest)
on 2009-03-19 19:10
does it return an array or a hash and can someone give me an example?
Bob M. (Guest)
on 2009-03-19 19:16
(Received via mailing list)
Why not open up a script/console and just try it out?

On Mar 19, 12:10 pm, Chris G. <removed_email_address@domain.invalid>
Ar C. (Guest)
on 2009-03-20 03:32
And the best answer is: it depends...

Seriously, try out your question via ruby script/console as suggested
above.

and mix up your find operations...

Person.find(:all)
Person.find(1)
Person.find(:first)
Person.find(:all, :conditions => ["id = 1"])
etc...

console can be quite educational
This topic is locked and can not be replied to.