从 Rails 3.0x 升级到 3.2.11 后,出现以下错误:
There're too many years options to be built. Are you sure you haven't mistyped something? You can provide the :max_years_allowed parameter
代码:
<%= f.date_select :to,
:start_year => Time.now.year - 80,
:discard_day => true,
:include_blank => true %>
我也尝试包含一个 :max_years_allowed 参数但没有成功,我该如何解决这个问题?