Search code examples
ruby-on-railsrubyruby-on-rails-3rubygemsrbenv

How update the ruby version on a old rails project


I have a rails 3 app that was made with 2.0.0-p0 ruby.

Now i would like to update just the ruby to 2.2.2

I changed already the local and global ruby on rbenv to 2.2.2.

There is a way or i have to keep using the 2.0.0-p0 on this app?


Solution

  • You have switched to another version of Ruby and you are probably using a different gemset (probably an empty one). Try running:

    bundle install
    

    Note that after switching to a newer version of Ruby, some of your old code might not be compatible, i.e. need debugging.

    Hope this help!