1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

docs, fix spelling. refs #20040 [ci skip]

This commit is contained in:
Yves Senn 2015-05-06 10:43:33 +02:00
parent 2d1a7b9c76
commit f4da2b7437

View file

@ -836,7 +836,7 @@ class ArticlesController < ApplicationController
def new
end
# snipped for brevity
# snippet for brevity
```
A couple of things to note. We use `Article.find` to find the article we're
@ -892,7 +892,7 @@ class ArticlesController < ApplicationController
def new
end
# snipped for brevity
# snippet for brevity
```
And then finally, add the view for this action, located at
@ -2000,7 +2000,7 @@ class ArticlesController < ApplicationController
@articles = Article.all
end
# snipped for brevity
# snippet for brevity
```
We also want to allow only authenticated users to delete comments, so in the
@ -2016,7 +2016,7 @@ class CommentsController < ApplicationController
# ...
end
# snipped for brevity
# snippet for brevity
```
Now if you try to create a new article, you will be greeted with a basic HTTP