In start_form_tag howw do you specify the form name?? Eric
On Saturday 24 December 2005 06:45, Eric Sloane wrote:> In start_form_tag howw do you specify the form name?? > Ericgive to form_tag a second argument: a hash with all the options of the html tag, like: <%= form_tag({:action => :update, :id => @product}, {:name => "frm", :onsubmit => "return false"}) %> Francois
Thanks Francois, just what I need Eric. Francois GORET wrote:> On Saturday 24 December 2005 06:45, Eric Sloane wrote: > >>In start_form_tag howw do you specify the form name?? >>Eric > > > give to form_tag a second argument: a hash with all the options of the html > tag, like: > > <%= form_tag({:action => :update, :id => @product}, > {:name => "frm", :onsubmit => "return false"}) %> > > Francois
Maybe Matching Threads
- NewbieQ : undefined method `stringify_keys!'' Dumb Question
- Using onSubmit tag in form_tag?
- NewbieQ concatenating name in options_from_collection_for_select
- NewbieQ: How do I refresh view after return from popup window
- Rjs $("aaa").insertHtml is not a function error