How would one set
:id => "myvalue" 用于简单形式的集合输入字段?或者在旁注中,我还试图设置age_from的ID,如id =>“age_from”无法弄清楚如何做到这两点,似乎非常缺乏这些文档。
尝试了我能想到的所有可能的组合:
= f.input_field :age_to,
:label => "Age from",
:collection => 18..60,
:select => 19 <------- set this to '19' for this collection?
:style => "width: 50px !important",
:id => "myid" <------- how to set id for this collection?