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.
17d01ff4326c26911481c7a77283b343?d=identicon&s=25 Eric Sloane (Guest)
on 2005-12-24 00:52
(Received via mailing list)
In start_form_tag howw do you specify the form name??
Eric
B7aa6f0356566cc801f769c6fc14ba1a?d=identicon&s=25 Francois GORET (Guest)
on 2005-12-24 02:34
(Received via mailing list)
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
17d01ff4326c26911481c7a77283b343?d=identicon&s=25 Eric Sloane (Guest)
on 2005-12-24 02:46
(Received via mailing list)
Thanks Francois, just what I need
Eric.
This topic is locked and can not be replied to.