> Trying to style the select box using the class - drops. Doesn''t
seem
> to be working, is there something wrong ?
From the API docs:
collection_select(object, method, collection, value_method, text_method,
options = {}, html_options = {})
class is an HTML option, so try:
<%= collection_select(:state, liststates, @states, :id, :name, nil,
{:class => ''drops''} ) %>
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---