Forum: Ruby on Rails NewbieQ: How do you specify a name for a form

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eric S. (Guest)
on 2005-12-24 01:52
(Received via mailing list)
In start_form_tag howw do you specify the form name??
Eric
Francois GORET (Guest)
on 2005-12-24 03:34
(Received via mailing list)
On Saturday 24 December 2005 06:45, Eric S. 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
Eric S. (Guest)
on 2005-12-24 03:46
(Received via mailing list)
Thanks Francois, just what I need
Eric.
This topic is locked and can not be replied to.