@@ -308,7 +308,7 @@ and see our text displayed!
308
308
309
309
### Setting the Application Home Page
310
310
311
- At the moment, < http://localhost:3000 > still displays "Yay! You're on Rails!" .
311
+ At the moment, < http://localhost:3000 > still displays a page with the Ruby on Rails logo .
312
312
Let's display our "Hello, Rails!" text at < http://localhost:3000 > as well. To do
313
313
so, we will add a route that maps the * root path* of our application to the
314
314
appropriate controller and action.
@@ -1442,15 +1442,14 @@ controller. Again, we'll use the same generator we used before:
1442
1442
$ bin/rails generate controller Comments
1443
1443
```
1444
1444
1445
- This creates four files and one empty directory:
1445
+ This creates three files and one empty directory:
1446
1446
1447
1447
| File/Directory | Purpose |
1448
1448
| -------------------------------------------- | ---------------------------------------- |
1449
1449
| app/controllers/comments_controller.rb | The Comments controller |
1450
1450
| app/views/comments/ | Views of the controller are stored here |
1451
1451
| test/controllers/comments_controller_test.rb | The test for the controller |
1452
1452
| app/helpers/comments_helper.rb | A view helper file |
1453
- | app/assets/stylesheets/comments.scss | Cascading style sheet for the controller |
1454
1453
1455
1454
Like with any blog, our readers will create their comments directly after
1456
1455
reading the article, and once they have added their comment, will be sent back
0 commit comments