I had some issue when checking for rails version in OSX terminal ie when give rails -v its saying Rails 5 requires Ruby 2.2.2 or newer.
But actually I had ruby ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16] installed. But whenever I take a new terminal window and issues ruby -v its giving me the version ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16].
What's actually happening here? Can some one help