%= setup_context :object => @location %> <%= form_for @location, :as => "location", :url => {:action => :create}, :html => {:class => 'form-horizontal aspace-record-form'} do |f| %> <%= form_context :location, @location do |form| %>