Duplicate gem selection fails after upgrading Rails 5 using undefined `select_recurring 'method

Recurring_select gem started crashing after updating Rails 5 with this error:

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,  []

Please, help.

+4
source share
1 answer

I ran into the same problem. I fixed it in a stretch request: https://github.com/GetJobber/recurring_select/pull/115

Basically, at the moment this stone only supports Rails 3 and Rails 4, I just added a simple condition so that it supports Rails 5 with the same functionality as Rails 4.

You can use the branched branch until it is accepted by adding it to your gemfile:

gem 'recurring_select',  git: 'https://github.com/sahild/recurring_select.git', branch: 'master'
+5

Source: https://habr.com/ru/post/1659408/


All Articles