Recurring_select gem开始失败并出现此错误:
ActionView::Template::Error (undefined method `select_recurring' for #<#<Class>
Did you mean? select_second):
40: .form-group
41: = f.label :schedule, :class=>"col-sm-5 control-label"
42: %div.col-sm-5
43: = f.select_recurring :current_custom_rule, []
请帮忙。
答案 0 :(得分:5)
我遇到了同样的问题。我已在我的拉取请求中修复了它:https://github.com/GetJobber/recurring_select/pull/115
基本上,gem目前仅支持Rails 3和Rails 4,我只是添加了一个简单的条件,使其支持Rails 5,同样具有与Rails 4相同的功能。
你可以使用我的分叉分支直到它被接受的时候通过将它添加到你的gemfile:
gem 'recurring_select', git: 'https://github.com/sahild/recurring_select.git', branch: 'master'