,我有以下使用date_select的..軌date_select類不會生效
<%= f.date_select :birthday, :order => [:month, :day], :prompt => { :day => 'Select day', :month => 'Select month' }, :html => {:class => "select birthday"} %>
但類沒有在html顯示..
<select id="profile_birthday_2i" name="profile[birthday(2i)]">
<select id="profile_birthday_3i" name="profile[birthday(3i)]">
我也試過。
<%= f.date_select :birthday, :order => [:month, :day], :prompt => { :day => 'Select day', :month => 'Select month' }, :class => "select birthday" %>
那也沒用。有任何想法嗎?
謝謝,這工作! – absolutskyy 2013-02-28 19:47:11