<%= form_for @location , :url => {:action => "update_location"}, html: {class: "form-horizontal"} do |f| %>
<%= render :partial => "location_form", locals: {:f => f} %>
<% end %>