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
you just try this command.it will help to uninstall all rails "gem uninstall railties" I think this is the only method to fully uninstall all rails
sudo gem uninstall rails -v 4.0.0.beta1
It should help.
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