- 导轨 3.2.8
- 简单的模式
我试图为“从列表中选择”字段中的每一天、月、年字段获取默认值,同时保留以下代码的样式。尝试了无数次,有人知道怎么做吗?将不胜感激thx!
= p.label t(:date_of_birth)
= p.input :dob,
:class => "extra",
:as => :date, :start_year => Date.today.year,
:end_year => Date.today.year - 80,
:month => Date.today.month,
:order => [:day, :month, :year],
:label => false,
:input_html => { :style => "width: 102px" }