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

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -