I have a rails app with the config/environment.rb line
config.gem 'authlogic', :version => '2.1.2'
The system gem for authlogic is 2.1.4 The one in my GEM_PATH is 2.1.2
No matter what I try, Rails is only using the 2.1.4 version, which is a problem. How to force rails to use 2.1.2?
Thanks
You can install a specific gem version with gem install [name] -v [version] and use it as [name] _[version]_ [command] [line] [args] .
Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.
To find out what the most recent Rails version is, use the command gem search rails | grep "^rails " . As I am writing this, it is 5.0. 1. Check that the correct version has been installed using bundle exec rails -v which should output Rails 5.0.
I recommend using Bundler
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With