Mark Horrocks wrote:
> Greg Donald wrote:
>> Car.order("make").all
>> --
>> Greg Donald
>> destiney.com | gregdonald.com
> 
> Thank you! :) It seems odd considering that Car.where(blah 
> blah).order('make') works.

If I understand it right you don't need the "all" part at all:

Car.order("make")

The way I understand it "all" is a special method designed to get "all" 
records in a similar way as all was in the old syntax.

In other words:

Car.find(:all, :order => 'make') not the same as Car.all
-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to