<%= form_for(@hydrant, :html => {:id => "abandon_form"}) do |f| %> <%= f.hidden_field "id" %> <%= f.hidden_field "user_id", :value => "" %> <%= f.hidden_field "name", :value => "" %> <%= f.submit "Abandon this hydrant" %> <% end %>