1
これは私が形に今持っているコードです:代わりに持つの<%= f.date_select :deadline, :order => [:month, :day, :year], class: 'date-select' %>
Railsの日付を選択短縮日
:
2016年1月5日
私はそれを持っていると思います:
1月5 16
出力の点では_formの面ではありません。
これは私が形に今持っているコードです:代わりに持つの<%= f.date_select :deadline, :order => [:month, :day, :year], class: 'date-select' %>
Railsの日付を選択短縮日
:
2016年1月5日
私はそれを持っていると思います:
1月5 16
出力の点では_formの面ではありません。
月名を短縮するには、use_short_monthオプションを使用します。
することでこれを行います。それがうまく働いた
<%= f.date_select :deadline, order: [:month, :day, :year], use_short_month: true, class: 'date-select' %>
THX –