Add a position column to your table and create a default scope for it. default_scope :order => 'position'
--- Nicholas Henry Ruby on Rails Developer [email protected] Firsthand Web Design and Development p 514.949.6869 Website http://www.firsthand.ca Twitter http://twitter.com/firsthand Blog http://blog.firsthand.ca/ Fork me on Github http://github.com/firsthand On Nov 18, 2:24 am, eggie5 <[email protected]> wrote: > I have a set of models Dog that I want to created a named_scope/ > default_scope so that they load in a certain order - I want to specify > a list of ids 3,2,5,1,4 to load in that order. How can I do this? -- 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=.

