有没有办法在time_zone select helper上指定CSS类。我有像 -
这样的代码f.time_zone_select:time_zone,ActiveSupport :: TimeZone.us_zones
答案 0 :(得分:0)
time_zone_select(:time_zone, ActiveSupport::TimeZone.us_zones, {}, {:class => 'css-class-name'})
http://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html#method-i-time_zone_select