2015-06-28 52 views

回答

1

您可以使用:minute_step選擇這樣

<%= f.datetime_select :start_datetime, :ampm => true, :minute_step => 15 %> 
+1

我_this_接近自己的答案輸入:)只要發現它在'的ActionView/lib目錄/ ACTION_VIEW /助理/在date_helper.rb' [rails codebase](https://github.com/rails/rails/blob/97f2c4129ae23ee074986a588628acc689a86462/actionview/lib/action_view/helpers/date_helper.rb#L753) – sameers

相關問題