On 9 October 2010 00:02, [email protected] <[email protected]> wrote: > Suppose I have a collection of Pages that are ordered by a column called > :sibling_order. Is there a more efficient way to update the ordering of the > collection than what I'm doing below:
Have a look at acts_as_list. Even if you do not want to use it (but why re-invent the wheel) then examining the code may be useful. Colin -- 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.

