I am using Rails 2.2.2 and I would like to add an id to the html form code generated by the form_tag.
<% form_tag session_path do -%>
<% end -%&g
This code
form_tag(:controller => "people", :action => "search", :method => "get", :class => "nifty_form")
give as result:
But, if you use this structure
form_tag({:controller => "people", :action => "search"}, :method => "get", :class => "nifty_form")
you will get as result
and it's exactly what you want