Hi!
I want to create id-attribute in form tag.
How Do I use start_form_tag ?
Hi!
I want to create id-attribute in form tag.
How Do I use start_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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs