I am an absolute beginner of ruby on rails and even web development.
I use Mac OS(El captain 10.11.3)
I would like to ask you how I can use ruby 2.3.1 anytime I would like to develop my project. It seems like that I can use ruby 2.3.1 for good. (Below is the version I would like to use)
ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
This may sound odd, but whenever I get my terminal closed, the version of ruby in my laptop goes back to
ruby -v
ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
So when I try to develop my project, I always do this
source ~/.bash_profile
The above command allows me to use ruby 2.3.1.
What I want to do is not to put the command "source ~/.bash_profile" when I open my ruby project.
Has anyone encountered any similar problem before? If you have, please leave your comments below. English is not my first language, so if this post does not make sense or you need more information, please let me know as well
Any advice would be appreciated! Thanks in advance!