%= form_for [:admin, @title], html: {id: 'edit_title_form', class: 'form-horizontal'}, remote: true do |f| %> <% if @title.errors.any? %>