<%# TODO temp fix - activate tristate only on new. There is bug and inproperly render some checkboxes in edit action %> <%- content_for(:javascripts) do -%> <%= javascript_include_tag "banners/jquery.tristate.js", "banners/banners.js" -%> <%- end -%> <%= render 'form' %>