%= setup_context :object => JSONModel(:repository).new(@repository['repository']) %> <%= form_for @repository, :as => "repository", :url => {:action => :create}, :html => {:class => 'form-horizontal aspace-record-form'} do |f| %> <%= form_context :repository, @repository do |form| %>