date_selectとかdatetime_selectとかのオプション
例:<%= datetime_select 'hoge', 'hage',{:discard_hour => true, :use_month_numbers => true } %>
- :order => [:day,:month,:year ] # 選択する項目の順番を入れ替える
- :discard_year => true # 年のセレクトボックスを削除する。
- :discard_month => true # 月以降のセレクトボックスを削除する。(日も削除される)
- :discard_day => true # 日のセレクトボックスを削除する。
- :discard_hour => true # 時間のセレクトボックスを削除する(分も削除する)
- :discard_minitu => true # 分のセレクトボックスを削除する。
- :include_seconds => true # 秒も含める。
- :start_year => 2007 # 年のセレクトボックスの開始年を設定する。
- :end_year => 2007 # 年のセレクトボックスの終了年を設定する。
- :use_month_numbers => true # 月を数字で表示する。
- :use_month_short_month => true # 月を短縮名で表示する。
- :add_month_numbers => true # 月を数字+名前で表示する。
- :use_month_names => %w(Januar Februar Marts ...)) #月の表示名を変更して利用する。
- :minute_step => 5 #分のステップを変更する。(例だと5分単位)
なのかな?
と調べてみた結果。