Ahad Amdani wrote:
> Newb Newb wrote:
>> Hi...
>> i used paulca-phone_codes plugin for country code.and it works.
>> <%= f.select :country_code, PhoneCode.options_for_select(:prefix)%>
>> what i want to know is how to apply css class for this.when i tried like
>> below it doesnot work
>> <%= f.select :country_code, PhoneCode.options_for_select(:prefix),
>> {:class => "mystyle" }%>
>> 
>> Any helps
> 
> try
> 
> <%= f.select :country_code, PhoneCode.options_for_select(:prefix), 
> :style => "class='MyStyle' %>
> 
> You can even substitute all of the properties separated by semicolons 
> (;) within the :style => "" parameter.



mine why didnt work ?

<%= post.body, :style => "class='body_text'" %>
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to