On Nov 10, 2009, at 7:01 PM, dasil003 wrote:

>
> :order => 'id ASC' on the association that the has_many :through is
> going through.
>
> In MySQL incidentally will usually give you this by default.

"Usually" being the key word. In your case, it isn't doing that, as  
all that the find() call is doing is generating a query like:

SELECT * FROM table_name WHERE id IN (x,y,z,etc)

If those records aren't coming back in the order you expect, that's  
not Rails's fault...

--Matt Jones

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-core+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to