ajax - Why doesn't my sorting method get called? -
ajax - Why doesn't my sorting method get called? -
this code:
<table border="1" id="champs"> <tbody id="item-list-body"> <tr class="champ" id="view-item-<%= champ.id %>"> <td class="drag_handle">[déplacer]</td> </tbody> </table> <%= sortable_element('item-list-body',:url => sort_update_path, :tag =>:tr, :handle => :drag_handle) %> i able sort, method sort_update never call.
i utilize rails 3.0.7 , ruby 1.9.2
it's particular elements' id's. has in format of string_integer.
try changing to:
<tr class="champ" id="view_<%= champ.id %>"> and mentioned, close tr
ajax ruby-on-rails-3 sortable-tables
Comments
Post a Comment