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
In my case I needed to put HTML options in {} to actually add id to form_tag, like this:
{}
id
form_tag
<%= form_tag(some_update_path(@some_record), { method: :put, id: "some-id" }) do <% end %>