I have use date_select ..
<%= f.date_select :birthday, :order => [:month, :day], :prompt => { :day => 'Select day', :month => 'Select month' }, :html => {:class => "select birthday"} %>
But the class does not appear in html ..
<select id="profile_birthday_2i" name="profile[birthday(2i)]"> <select id="profile_birthday_3i" name="profile[birthday(3i)]">
I tried too ..
<%= f.date_select :birthday, :order => [:month, :day], :prompt => { :day => 'Select day', :month => 'Select month' }, :class => "select birthday" %>
That didn't work either. Any ideas?
absolutskyy
source share