<%= form_for @chapter, url: admin_chapter_path(@chapter), html: {class: "form-horizontal main-forms"} do |f| %> <%= render partial: 'form', locals: {f: f} %> <% end %>