%= simple_form_for(@batch) do |f| %> Home Batch <% if !@batch.id.nil? %> Edit <% else %> New <% end %>