I want to create id-attribute in form tag.

http://rubyonrails.org/api/classes/ActionView/Helpers/FormTagHelper.html#M000491

The second dictionary is then the html options.

form_tag({:controller => ‘main’, :action => ‘index’}, {:id=>‘form1’})

Notice the braces.
Vish