<%= form_for @category, :url => admin_module_app_categories_path(@module_app_id), remote: true do |f| %> <fieldset> <legend><%= t(:add_category) %></legend> <%= render :partial => 'form', :locals => {:f => f} %> </fieldset> <div class="form-actions"> <a href="javascript:$.pageslide.close()" class="btn btn-small"><%= t(:cancel) %></a> <%= f.submit t(:create_), class: 'btn btn-primary btn-small' %> </div> <% end %>