File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,8 @@ create app/views/blorgh/articles/edit.html.erb
329
329
create app/views/blorgh/articles/show.html.erb
330
330
create app/views/blorgh/articles/new.html.erb
331
331
create app/views/blorgh/articles/_ form.html.erb
332
+ create app/views/blorgh/articles/_ article.html.erb
333
+ invoke resource_route
332
334
invoke test_unit
333
335
create test/controllers/blorgh/articles_controller_test.rb
334
336
create test/system/blorgh/articles_test.rb
@@ -844,12 +846,12 @@ an author - represented by a record in the `users` table - with an article,
844
846
represented by the ` blorgh_articles ` table from the engine.
845
847
846
848
Finally, the author's name should be displayed on the article's page. Add this code
847
- above the "Title" output inside ` app/views/blorgh/articles/show .html.erb ` :
849
+ above the "Title" output inside ` app/views/blorgh/articles/_article .html.erb ` :
848
850
849
851
``` html+erb
850
852
<p>
851
- <b >Author:</b >
852
- <%= @ article.author.name %>
853
+ <strong >Author:</strong >
854
+ <%= article.author.name %>
853
855
</p>
854
856
```
855
857
You can’t perform that action at this time.
0 commit comments