I want to change ruby 2.3.5
line in gemfile to ruby 2.4.2
but i did not know how?
Asked
Active
Viewed 1,368 times
-5

Milo
- 3,365
- 9
- 30
- 44

Eman Nasser
- 1
- 1
-
Gemfile.lock >> command not found – Eman Nasser Dec 22 '17 at 14:06
-
Have you tried this one? https://stackoverflow.com/q/37914702/7387742 – Mohammed Alhanafi Dec 22 '17 at 14:09
-
i want to work with ruby 2.4.2 , so i can not lacal 2.3.5 by rvm or rbenv – Eman Nasser Dec 22 '17 at 14:13
-
1Your question is unclear. You don't know how to edit a file? Then how are you going to write programs? – Jörg W Mittag Dec 22 '17 at 16:24
3 Answers
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