I was having issues with RVM,  gem and Rails not being detected after I had installed them.

The issue was that my. Bash_profile was not being loaded.