form_for() and name

http://rails.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M000387

Html attributes for the form tag can be given as :html => {…}. Example:

  <% form_for :person, @person, :html => {:id => 'person_form', :name
=> 'foo'} do |f| %>
    ...
  <% end %>