ruby - rails -v keeps saying Rails 3.2.13 after installing 4.2.2 -


what gives?

i typed in gem install rails -v 4.2.2

after that, tried rails -v, , keeps coming out rails 3.2.13

why this?

my ruby version after ruby -v

ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14] 

you can manage gems bundler (http://bundler.io/)

put on gemfile

source 'https://rubygems.org'  gem 'rails', '4.2.2' 

gem install bundler

and

bundle install

bundle exec rails -v

if still working without bundler, can make

gem list

look @ rails version , uninstall older versions

gem uninstall rails --version 3.2.13

and then

rails -v


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -