mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
specify path to CommentsController again inline
(incorporating feedback from a newbie)
This commit is contained in:
parent
a2c8438854
commit
8cf428fe78
1 changed files with 1 additions and 1 deletions
|
@ -1420,7 +1420,7 @@ This adds a form on the `Post` show page that creates a new comment by
|
||||||
calling the `CommentsController` `create` action. The `form_for` call here uses
|
calling the `CommentsController` `create` action. The `form_for` call here uses
|
||||||
an array, which will build a nested route, such as `/posts/1/comments`.
|
an array, which will build a nested route, such as `/posts/1/comments`.
|
||||||
|
|
||||||
Let's wire up the `create`:
|
Let's wire up the `create` in `app/controllers/comments_controller.rb`:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class CommentsController < ApplicationController
|
class CommentsController < ApplicationController
|
||||||
|
|
Loading…
Reference in a new issue