On 7/8/06, P?l Bergstr?m <pal@palbergstrom.com>
wrote:>
> How can I modify the style of a RoR field like text_field or
> password_field? I can use input in css, but how do I add a class?
The class option needs to go into the options hash
<%= text_field object, method, :class => ''my_class''
-%>
Almost everything that you put into the options hash will show up as
attributes and values in the html tag
--> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060708/a97726f1/attachment.html