Can I update to Ruby 2.1.2 using Rails 3.2.3?
The first release of rails that officially support ruby 2.0 was 3.2.13 (see the announcement on the rails blog.
I deployed several applications running 3.2.15-3.2.17 and ruby 2.0 (They've since been upgraded to rails 4) without any problems that I recall.
The recently released 3.2.22 supports ruby 2.2 (announcement)
When using Rails 3.2.22.2, what is the highest Ruby Version I can use?
Quote from this blog post
Rails 3.2.22 includes all the commits from the 3-2-stable branch. This mean that now Rails 3.2 supports Ruby 2.2.
Since Rails 3.2 doesn't receive bug fixes anymore (only severe security fixes) I would not expect updates to the Rails 3.2 branch that ensure Ruby 2.3 compatibility. Furthermore Rails 3.2 reaches end of life when Rails 5.0 is released (what will be very soon, since 5.0.0.RC1 is already available).
Which Ruby on Rails is compatible with which Ruby version?
This is an old question, but the fact that rails is tested against a version of ruby is a good indication that it should work on that version of ruby.
Since 9th April 2019, stable branches of Rails use Buildkite for automated testing, and the list of tested ruby versions, by rails branch, is:
Rails 6.1
>= 2.5.0
Rails 6.0
>= 2.5.0
Rails 5.2
>= 2.2.2
< 2.7
(see https://github.com/rails/rails/issues/38426)
Rails 5.1
>= 2.2.2
Rails 5.0
>= 2.2.2
Rails 4.2
>= 1.9.3
Rails 4.1
>= 1.9.3
Prior to 9th April 2019, stable branches of Rails since 3.0 use travis-ci for automated testing, and the list of tested ruby versions, by rails branch, is:
Rails 3.0
- 1.8.7
- 1.9.2
- 1.9.3
Rails 3.1
- 1.8.7
- 1.9.2
- 1.9.3
Rails 3.2
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.8
- 2.2.6
- 2.3.3
Rails 4.0
- 1.9.3
- 2.0.0
- 2.1
- 2.2
Rails 4.1
- 1.9.3
- 2.0.0
- 2.1
- 2.2.4
- 2.3.0
Rails 4.2
- 1.9.3
- 2.0.0-p648
- 2.1.10
- 2.2.10
- 2.3.8
- 2.4.5
Rails 5.0
- 2.2.10
- 2.3.8
- 2.4.5
Rails 5.1
- 2.2.10
- 2.3.7
- 2.4.4
- 2.5.1
Rails 5.2
- 2.2.10
- 2.3.7
- 2.4.4
- 2.5.1
Rails 6.0
- 2.5.3
- 2.6.0
(From https://www.hmallett.co.uk/2018/08/ruby-and-ruby-on-rails-version-compatibility/)
bundle updated then sprockets throw filenotfound error rails 3.2.3 ruby1.9.3p194
try to remove Gemfile.lock
(backup first) and run bundle install
once again
Only one version of Ruby works when multiple versions are installed
I had the exact same issue, except using rbenv with bash.
The perpetrator seems to be the echo "export RUBYOPT='-W:no-deprecated -W:no-experimental'" line in your .zsh file, I'm not sure if Ruby 2.6.5 understands it.
Remove echo "export RUBYOPT='-W:no-deprecated -W:no-experimental'" from your .zsh / .bashrc / .profile and restart your shell.
Related Topics
Extract All Urls Inside a String in Ruby
How to Evaluate a Date Difference in Years, Months and Days (Ruby)
Is There an Equivalent of Array#Find_Index for the Last Index in Ruby
How to Make Ruby's Restclient Gem Respect Content_Type on Post
Finding the Ip Address of a Domain
Rvm Error While Running Make Install. Error Comes While Installing Power_Assert Gem
Why Is Uri.Escape() Marked as Obsolete and Where Is This Regexp::Unsafe Constant
How to Update to Ruby 2.1.2 Using Rails 3.2.3
Ruby on Rails Add a Column After a Specific Column Name
Rails: How to Print a Decimal as a Percent
Fastercsv Error with Ruby 1.9.2
How to Know the Current Rake Task
Ruby Can Not Access Variable Outside the Method
How to Force a Gem's Dependencies in Gemfile
Keyword for Exclusive or in Ruby
Regex to Validate String Having Only Characters (Not Special Characters), Blank Spaces and Numbers