使用gem 'calendar_date_select', :git => 'git://github.com/paneq/calendar_date_select.git'
在我的Gemfile。
是否有禁用用户键入日期的选项,迫使他们使用弹出式日历?由于某种原因,如果他们手动输入日期,就会存储错误的日期。
这是我的表格:
<%= f.calendar_date_select "invoice_date", :index => '1', :time => false, :size => 12 %>
提前感谢!
没关系,我一提交问题就明白了:
:popup => "force"