Forum: Ruby on Rails what is the id of the form_for

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.
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2009-01-01 03:37
I used form_for to generate a form, but what is the ID of this form, how
can I specify a ID for it.
Aad37b5f7116c8d1f547d23b37566032?d=identicon&s=25 Greg Donald (destiney)
on 2009-01-01 05:41
(Received via mailing list)
On Wed, Dec 31, 2008 at 8:37 PM, Zhao Yi
<rails-mailing-list@andreas-s.net> wrote:
> I used form_for to generate a form, but what is the ID of this form, how
> can I specify a ID for it.


<% form_for :foo, @foo, :html => { :id => 'whatever" } do |f| -%>

<% end -%>


http://api.rubyonrails.com/classes/ActionView/Help...



--
Greg Donald
http://destiney.com/
This topic is locked and can not be replied to.