<%= form_for @building, url: admin_spaces_path, html: {class: "form-horizontal main-forms"} do |f| %>
<%= render :partial => "form", locals: {f: f} %>
<% end %>