On 6 May 2010 17:23, Joe <j...@dev-hq.co.uk> wrote: > As for acts_as_list, I would prefer not to use it for now and just > keep with using position; However it is something I will be looking at > for future projects..
Why?! acts_as_list uses the position column itself. You can scope it (so you can have a list per category, or whatever) and it gives you the next/previous item methods: http://api.rubyonrails.org/classes/ActiveRecord/Acts/List/InstanceMethods.html As it is, you're trying to reinvent the wheel. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.