I’m trying to uninstall Rails completely, but I can’t get the grip of it.
Here’s what I tried:
$ gem update
rails 4.0.0.beta1 instal
First you should understand what is the location of rails. Type in your console (bash, zsh, etc.)
which rails
If it's located in your home folder, like:
/home/your_name/.rvm/gems/ruby-1.9.3-p392/bin/rails
Then, you should remove it using local gem:
gem uninstall rails
Otherwise, you probably have to use sudo:
sudo gem uninstall rails
NOTE: you can check your rails versions as following:
Local:
gem list rails
Global:
sudo gem list rails