2013-05-05 23 views

回答

3

可以使用downto方法,像這樣:

<%= f.input :college_class, as: :select, collection: 2018.downto(1940), 
prompt: '----', hint: 'Year', :input_html => { :class => 'span1'} %> 
+0

真棒!謝謝路易斯。 – 2013-05-05 21:05:01

相關問題