<% content_for :page_specific_javascript do %> <%= javascript_include_tag "cycle2" %> <%= javascript_include_tag "ad_banner/banner_preview" %> <% end %>
Add
<%= form_for :ad_banner, url: nil, remote: true do |f| %>
<%= render :partial => "form", :locals => { :f => f } %>
<%= t(:cancel) %> <%= f.submit t(:submit), class: 'btn btn-primary btn-small' %>
<% end %>