RoR: onchange in js doesn't work
<p>I have a list with actions and on that list I have used <code>.sortable</code> in js - it worked correctly. </p>

<p>actions.js:</p>

<pre><code>$(function () {
  $("#actions").sortable({
    axis: 'y',
    handle: '.handle',
    update: function () {
      $.post($(this).data('update-url'), $(this).sortable('serialize'));
    }
  });
}
</code></pre>

<p>I need to add check to this list if given element has correct flag (true/false).</p>

<p>When i added <code>.onchange</code> i get :</p>

<pre><code>Completed 500  in 58ms (ActiveRecord: 11.0ms)
ActionView::MissingTemplate - Missing template update_actions/sort, cms/sort, application/sort with {:formats=&gt;[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :variants=&gt;[], :handlers=&gt;[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}.
</code></pre>

<p>I don't know how to repair it.</p>

<p>Thank you.</p>