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
On 9/21/06, Shinichiro
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> Hi!
>
> I want to create id-attribute in form tag.
>
> <form action="xxx" id="form1" >
>
> How Do I use start_form_tag ?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---