Paul Shannon
2006-Jul-05 09:48 UTC
[Rails] Setting a HTML ID with form_tag / form_remote_tag
Hello, Is it possible to specify a HTML ID with the form_tag / form_remote_tag methods of the FormHelper? I specifically need this for javascript and css but can''t seem to find how to do it in the APIs. Cheers, Paul Shannon Web Applications Developer Codeweavers Limited -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060705/2fa750a6/attachment-0001.html
Paul Shannon
2006-Jul-05 09:58 UTC
[Rails] Setting a HTML ID with form_tag / form_remote_tag
Hello again,
Looks like you use the :html options so :html => {:id => "myId"}
Thanks anyway, hope this helps some others,
Paul Shannon
Web Applications Developer
Codeweavers Limited
Tel: 0870 443 0888
Fax: 0870 443 0889
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Paul Shannon
Sent: 05 July 2006 10:48
To: rails@lists.rubyonrails.org
Subject: [Rails] Setting a HTML ID with form_tag / form_remote_tag
Hello,
Is it possible to specify a HTML ID with the form_tag / form_remote_tag
methods of the FormHelper? I specifically need this for javascript and
css but can''t seem to find how to do it in the APIs.
Cheers,
Paul Shannon
Web Applications Developer
Codeweavers Limited
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060705/0a82ce29/attachment.html