I''m not sure, I''ve been just doing:
<%=country_select ''user'', ''country'', nil,
{}, {:class=>''some-class''} %>
but I''m hoping there''s a nicer way. If there isn''t,
you could always
create your own helper which uses the existing one.
On Dec 11, 5:56 am, jon
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> <%=country_select ''user'',
''country''%>
>
> I have the above field, how can I add a class to this?
>
> The api says this, if someone could explain how to get to the
> html_options bit, without the others, that would be great?
>
> country_select(object, method, priority_countries = nil, options = {},
> html_options = {})
>
> --
> Posted viahttp://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?hl=en
-~----------~----~----~----~------~----~------~--~---