diff options
author | Juanito Fatas <katehuang0320@gmail.com> | 2013-12-24 01:45:15 +0800 |
---|---|---|
committer | Juanito Fatas <katehuang0320@gmail.com> | 2013-12-24 01:45:15 +0800 |
commit | 7c09ac7104cdc1970d67f2256cf19d92bcec12b7 (patch) | |
tree | 6564b5233be2d40e177bf94b233379196a4f22a5 /guides/source | |
parent | f4f496dfeb8ff1a9e78d12d943235c0a630ff55c (diff) | |
download | rails-7c09ac7104cdc1970d67f2256cf19d92bcec12b7.tar.gz rails-7c09ac7104cdc1970d67f2256cf19d92bcec12b7.tar.bz2 rails-7c09ac7104cdc1970d67f2256cf19d92bcec12b7.zip |
[ci skip] a destroy action in controller, not delete [getting_stated.md].
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/getting_started.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 279a977f6f..5627af11fa 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -1703,8 +1703,8 @@ Deleting Comments ----------------- Another important feature of a blog is being able to delete spam comments. To do -this, we need to implement a link of some sort in the view and a `DELETE` action -in the `CommentsController`. +this, we need to implement a link of some sort in the view and a `destroy` +action in the `CommentsController`. So first, let's add the delete link in the `app/views/comments/_comment.html.erb` partial: @@ -1729,7 +1729,7 @@ So first, let's add the delete link in the Clicking this new "Destroy Comment" link will fire off a `DELETE /posts/:post_id/comments/:id` to our `CommentsController`, which can then use -this to find the comment we want to delete, so let's add a destroy action to our +this to find the comment we want to delete, so let's add a `destroy` action to our controller (`app/controllers/comments_controller.rb`): ```ruby |