Skip to content

Commit

Permalink
Update obsolete documentation for Engines
Browse files Browse the repository at this point in the history
  • Loading branch information
takmar committed Dec 12, 2023
1 parent 89d8569 commit ec11a06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/source/engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -844,12 +844,12 @@ an author - represented by a record in the `users` table - with an article,
represented by the `blorgh_articles` table from the engine.

Finally, the author's name should be displayed on the article's page. Add this code
above the "Title" output inside `app/views/blorgh/articles/show.html.erb`:
above the "Title" output inside `app/views/blorgh/articles/_article.html.erb`:

```html+erb
<p>
<b>Author:</b>
<%= @article.author.name %>
<strong>Author:</strong>
<%= article.author.name %>
</p>
```

Expand Down

0 comments on commit ec11a06

Please sign in to comment.