jqueryjquery-ui-sortableruby-on-rails-3.1acts-as-list

Rails 3.1: undefined sortable_element using acts_as_list gem - how to fix?


How do I get sortable_element from the acts_as_list gem to work nice with Rails 3.1? I think it's because jquery is used instead of prototype so I lose that helper method? Is this right? In which case does that mean I need to use jrails (and how best to do this in Rails 3.1)?


Solution

  • I think if you've moved to Rails 3.1 and you're just using acts_as_list as a way to give yourself nice ajax-y moveable lists - up and down - then you might be better off, as I've just done, following the great little walkthrough here http://practiceovertheory.com/blog/2009/08/06/sortable-lists-with-jquery-in-rails/ and ditching the gem.