Support for Rails >= 4.1.x
hepu opened this issue · 3 comments
I'm having trouble requiring recurring_select in Rails 4.1.x. This is the Gemfile i used:
# Gemfile
gem 'recurring_select'
gem 'jquery-ui-rails', '5.0.0'
Running bundle install
gives the following:
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
recurring_select (>= 0) ruby depends on
sprockets (~> 2.0.0) ruby
bulk_email (>= 0) ruby depends on
sprockets (2.12.1)
Bundler could not find compatible versions for gem "sprockets-rails":
In Gemfile:
recurring_select (>= 0) ruby depends on
sprockets-rails (~> 2.0.0) ruby
bulk_email (>= 0) ruby depends on
sprockets-rails (2.1.3)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
recurring_select (>= 0) ruby depends on
railties (~> 3.1.0) ruby
jquery-ui-rails (= 5.0.0) ruby depends on
railties (4.1.5)
I managed to fix it by including sass-rails
v4.0.3 into my Gemfile, but now i'm getting another error
@hepu: Sorry, we're still running Rails 4.0 at Jobber, and haven't tested this in 4.1.
Pull requests welcome though.
@nathany i managed to sort this by requiring the recurring_select_helper in my controller (i'm developing an engine in which i use recurring_select):
Using this line at the top of my controller file worked for me:
require_dependency "recurring_select_helper"
P.D: The error i got after i successfully installed recurring_select was: "A copy of RecurringSelectHelper::FormBuilder has been removed from the module tree but is still active!" when edited a model after the server was running in development