开发者

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

开发者 https://www.devze.com 2023-03-19 06:56 出处:网络
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 d

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开发者_StackOverflow中文版 best to do this in Rails 3.1)?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消