Skip to content

Commit daea242

Browse files
DOCSP-42796 Update Rails versions (#44)
1 parent 00a7e1e commit daea242

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

snooty.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ name = "mongoid"
22
title = "Mongoid"
33

44
intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"]
5+
6+
[constants]
7+
rails-6-version = 6.0
8+
rails-7-version = 7.1

source/tutorials/getting-started-rails6.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In order to do so, the first step is to install the ``rails`` gem:
4646

4747
.. code-block:: sh
4848

49-
gem install rails -v '~> 6.0'
49+
gem install rails -v '~> {+rails-6-version+}'
5050

5151

5252
Create New Application

source/tutorials/getting-started-rails7.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In order to do so, the first step is to install the ``rails`` gem:
4646

4747
.. code-block:: sh
4848

49-
gem install rails -v '~> 7'
49+
gem install rails -v {+rails-7-version+}
5050

5151

5252
Create New Application
@@ -185,8 +185,8 @@ creating blog posts:
185185
Navigate to `localhost:3000/posts <http://localhost:3000/posts>`_
186186
to create posts and see the posts that have already been created.
187187

188-
.. image:: ../img/rails-new-blog.png
189-
:alt: Screenshot of the new blog
188+
.. figure:: /img/rails-new-blog.png
189+
:alt: Screenshot of the new blog
190190

191191

192192
Add Comments
@@ -294,8 +294,8 @@ Next replace ``app/view/comments/_comment.html.erb`` with the following contents
294294

295295
You should now be able to leave comments for the posts:
296296

297-
.. image:: ../img/rails-blog-new-comment.png
298-
:alt: Screenshot of the blog with a new comment being added
297+
.. figure:: /img/rails-blog-new-comment.png
298+
:alt: Screenshot of the blog with a new comment being added
299299

300300

301301
Existing Application

0 commit comments

Comments
 (0)