On Sep 29, 3:04 pm, "Ryan Bigg (Radar)"
<radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have a paginate call like this:
>
> @person.chats.paginate :per_page => 50, :page => params[:page],
:order =>
> "created_at ASC"
>
> which you''d think would order by created_at in ascending order...
>
> Wrong!
>
> If I have has_many :chats, :order => "created_at DESC" on my
Person model,
> it will attempt to do both and return a bastard set of results.
Are you using Rails 2?
--~--~---------~--~----~------------~-------~--~----~
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---