%= form_for @note, html: {class: "form-horizontal"} do |f| %> <% if @note.errors.any? %> <%= raw errors_to_html(@note.errors) %> <% end %> <%= hidden_field_tag :client_id, @client.id %>