I installed RVM from scratch following the installation guide on the official website. I installed Rails, created a dummy app and everything worked fine.
I shut off my m
Here is another possibility. This happened to me. Everything was working fine and sudo'ed into root. I left the terminal open and returned a couple of days later.
rails would not work. Just like you said it was there in the gems. Turns out that I just needed to exit out of the root user and go back to my regular user and rails was fine.
You need to type source ~/.rvm/scripts/rvm
before attempting to use Rails.
I believe the RVM installation suggests putting this line (or something similar) in your .bashrc
.
Run the following command in Terminal:
echo "source \$HOME/.rvm/scripts/rvm" >> ~/.bashrc
This appends the line source \$HOME/.rvm/scripts/rvm
to the end of the .bashrc
file.
Doing so ensures that RVM is properly loaded each time you open up a terminal.
the proper fix is it https://rvm.io/integration/gnome-terminal/
you should not add source ~/.rvm/scripts/rvm
to ~/.bashrc
, you can find some more details here: https://rvm.io/support/faq/#shell_login