It seems if you put the following line
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
into bash_profile
you can potentially run into issues.
I ended up removing the above from bash_profile
and putting it at the bottom of bashrc
.
Yes, I had to install rails again (NOT using sudo, just gem install rails --no-ri --no-rdoc
) for the app at hand but it seems this has solved the situation at hand:
I can close terminal, cd back into the rails app directory, do a rails -v
and it returns rails 4.0.2
I can open new tabs in current terminal session, do a rails -v
within the rails project directory and it returns rails 4.0.2