Try this
 <%= f.date_select :expiration_date, {:order =>
[:month, :year], :discard_day => true},{ :class => "dtfld"} %>

On Mar 14, 1:59 am, Jason <[email protected]> wrote:
> I have the following code, but can't seem to get the class attribute
> to show up in the generated select elements. I saw something about a
> bug/patch. However, as am still learning RoR I didn't want to jump to
> conclusions. Anyone see anything wrong:
>
> <%= f.date_select :expiration_date, :order =>
> [:month, :year], :discard_day => true, :class => "dtfld" %>
>
> I've also tried:
>
> <%= f.date_select :expiration_date, {:order =>
> [:month, :year], :discard_day => true}, :class => "dtfld" %>
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to