You'll need to use the :order option. Test.find([1,2,3,4,5], :order => "id")
-Dan Manges http://www.dcmanges.com/blog On Sep 22, 4:24 pm, wheels <[EMAIL PROTECTED]> wrote: > How can i make ActiveRecord find in order for an array parameter? > > Ex. for Test.find([1, 2, 3, 4, 5]) > it should return test.id=1 as the first entry. > > Right, it just returns in a random order. > > thanks --~--~---------~--~----~------------~-------~--~----~ 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 [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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

