-5

I want to change ruby 2.3.5 line in gemfile to ruby 2.4.2 but i did not know how?

enter image description here

Milo
  • 3,365
  • 9
  • 30
  • 44

3 Answers3

0

inside your working folder there is file .ruby-version, change the content from 2.3.5 to 2.4.2 and then run steps below, if you working with rbenv

gem install bundler
rbenv rehash
ruby -v 
# make sure it said 2.4.2
bundle install
widjajayd
  • 6,090
  • 4
  • 30
  • 41
0

Just open your Gemfile in a text editor and change the

ruby '2.3.5'

to

ruby '2.4.2'
spickermann
  • 100,941
  • 9
  • 101
  • 131
0

You need to open your Gemfile and update ruby version ruby '2.4.2' Then you will need to go to terminal and install that version if not already installed. Use rvm use 2.4.3 (if you are using rvm) command to select 2.4.3 version.

Manishh
  • 1,444
  • 13
  • 23