Hi All,
I found it after on try and error and I feel ashamed to have asked about
this when it was so easy.
Found below the answer to my question.
<%= text_field ''role'', ''title'', :class
=> ''red'' %>
I love rubyonrails it''s so easy.
Laurent
_____
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
Behalf Of Laurent Muchacho
Sent: 11 December 2005 12:47
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: [Rails] applying css class to form element
Hi All,
Newby question Sorry if this been asked before. But I''ve been trying
everywhere and can''t find the reference for it.
I will like to apply css class to the method date_select, link_to,
text_field etc
Does anyone know the syntaxe to do this or if it''s possible or not to
do.
Many Thanks
Laurent
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails