Skip to content

Commit 422dc11

Browse files
committed
Update the README with instructions on the Ruby version
1 parent 30f0980 commit 422dc11

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ DEPENDENCIES
338338
will_paginate (= 3.3.1)
339339

340340
RUBY VERSION
341-
ruby 3.1.1p18
341+
ruby 3.1.2p20
342342

343343
BUNDLED WITH
344344
2.3.11

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,32 @@ $ git clone https://github.com/learnenough/rails_tutorial_sample_app_7th_ed
2020
$ cd rails_tutorial_sample_app_7th_ed/
2121
```
2222

23-
To install the gems, you will need the same version of Bundler used to build the sample app, which you can find using the `tail` command as follows:
23+
To install the gems, you will need the same versions of Ruby and Bundler used to build the sample app, which you can find using the `cat` and `tail` commands as follows:
2424

2525
```
26+
$ cat .ruby-version
27+
<Ruby version number>
2628
$ tail -n1 Gemfile.lock
27-
<version number>
29+
<Bundler version number>
2830
```
2931

30-
Next, install the same version of the `bundler` gem and install the gems accordingly:
32+
Next, install the versions of `ruby` and the `bundler` gem from the above commands. The Ruby installation is system-dependent; on the cloud IDE recommended in the tutorial, it can be installed as follows:
33+
34+
```
35+
$ rvm get stable
36+
$ rvm install <Ruby version number>
37+
$ rvm --default use <Ruby version number>
38+
```
39+
40+
See the section [Up and running](https://www.learnenough.com/ruby-on-rails-7th-edition-tutorial#sec-up_and_running) for more details. Once Ruby is installed, the `bundler` gem can be installed using the `gem` command:
3141

3242
```
3343
$ gem install bundler -v <version number>
44+
```
45+
46+
Then the rest of the necessary gems can be installed with `bundle` (taking care to skip any production gems in the development environment):
47+
48+
```
3449
$ bundle _<version number>_ config set --local without 'production'
3550
$ bundle _<version number>_ install
3651
```

0 commit comments

Comments
 (0)