0

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 %>

提前致谢!

4

1 回答 1

0

没关系,一提交问题,我就明白了:

:popup => "force"
于 2013-05-21T18:07:34.757 回答