What does the find method return


#1

does it return an array or a hash and can someone give me an example?


#2

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


#3

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