0
- 軌3.2.8
- simpleform
我試着去獲得一個默認值每一天,一個月,一年領域得到了「從列表中選擇」,同時保持下面的代碼與造型。嘗試nummerous嘗試,任何人都知道如何做到這一點?會非常感激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" }