Skip to content

Commit

Permalink
Merge pull request rails#40066 from jeffmcaffer/patch-1
Browse files Browse the repository at this point in the history
Update Engine getting started generation instructions for consistency
  • Loading branch information
composerinteralia authored Aug 19, 2020
2 parents 161fc87 + d27a2a9 commit ddf106f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/engines.md
Original file line number Diff line number Diff line change
@@ -465,7 +465,7 @@ commenting functionality as well. To do this, you'll need to generate a comment
model, a comment controller, and then modify the articles scaffold to display
comments and allow people to create new ones.

From the application root, run the model generator. Tell it to generate a
From the engine root, run the model generator. Tell it to generate a
`Comment` model, with the related table having two columns: an `article_id` integer
and `text` text column.

@@ -561,7 +561,7 @@ end
This creates a nested route for the comments, which is what the form requires.

The route now exists, but the controller that this route goes to does not. To
create it, run this command from the application root:
create it, run this command from the engine root:

```bash
$ bin/rails generate controller comments

0 comments on commit ddf106f

Please sign in to comment.