5

My application has the following files:

.ruby-version

ruby-2.0.0-p247

.ruby-gemset

app1

When I switch into the application directory the application does not recognize the new version. It switches Ruby versions but the application does not see that until I run rvm use ruby-2.0.0-p247 manually. It works fine with .rvmrc but not .ruby-version. My RVM is version 1.25.15.

Edit

It's a Rails 4 app and it's using the bin directory for executables.

Artem Kalinchuk
  • 6,502
  • 7
  • 43
  • 57

5 Answers5

3

Check if you have a .rvmrc file in your project root folder.

You might need to update or remove it.

Lucas Caton
  • 3,027
  • 1
  • 24
  • 34
2

I had the same problem after a fresh install. The problem was , that the rvm source script was not running . It started to work after i run this:

source /home/myuser/.rvm/scripts/rvm

To solve this permanently. Open your terminal and run this:

echo "source /home/myuser/.rvm/scripts/rvm" >> ~/.bashrc
kröte
  • 96
  • 6
1

I managed to fix the issue by reinstalling RVM and all the ruby gemsets. This does not answer the question as to why it was doing it but just in case someone is stuck with the same issue, here is one solution.

Uninstall RVM

rvm implode

Install RVM (after rebooting your PC to clean up the junk that was left behind)

\curl -sSL https://get.rvm.io | bash
Artem Kalinchuk
  • 6,502
  • 7
  • 43
  • 57
1

try to use ruby with gemset version rvm use ruby-2.0.0@app1 and execute bundle after that bundle install

Sergey
  • 379
  • 2
  • 5
1

I have the same problem. Try this command:

rvm get stable --auto-dotfiles

to reinstall rvm.

Tesla Lee
  • 11
  • 4