<%= form_for @hydrant, :html => {:id => "steal_form"} do |f| %> <%= f.hidden_field "id" %> <%= f.hidden_field "user_id", :value => "" %> <%= f.hidden_field "name", :value => "" %> <%= f.submit "Steal this hydrant", :id => "steal_form_submit" %> <% end %>