Hey,
Currently the value of :order key in find method of ActiveRecord has
to be a string,
:order => ' name asc, created_at desc '
Wouldn't It more be more inuitive to say something like
:order => { :name => :asc, :created_at => :desc}
Similar to :conditions, which has got Hash support recently.
Thoughts?
Jatinder
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---