activerecord result set count

Hello all,

Can anyone clear this up for me?...

Example: 1 table, 1 record in table

result = Stuff.find(:all)

result.size

=> 1

result = Stuff.find(1)

result.size

NoMethodError: undefined method `size'...blah blah

result = Stuff.find(:all, :conditions => 'id =1')

result.size

=> 1

...I'm having troubles understanding this relationship (unless it's a bug?) and it's making it very frustrating if I want to use the same view to show a single or many records. I can get around it by using the :conditions as stated above but should I have to? Using...

result.count

NoMethodError: undefined method `count'...blah blah

...seems to have the same issues.

Can anyone shed some light on this? Sorry if it's already been covered somewhere else I didn't know how to exactly phrase my question without having to read through a hundred posts.

Thanks!

Yes!

...it does seem awkward to have to account for this in a separate way especially when rails is so great in other ways. :slight_smile:

Thank you,

Chris