Fixes controller name highlight in guide
This commit is contained in:
parent
ce1517ea52
commit
a12305a2e8
|
@ -157,7 +157,7 @@ render template: "products/show"
|
|||
|
||||
The above two ways of rendering (rendering the template of another action in the same controller, and rendering the template of another action in a different controller) are actually variants of the same operation.
|
||||
|
||||
In fact, in the BooksController class, inside of the update action where we want to render the edit template if the book does not update successfully, all of the following render calls would all render the `edit.html.erb` template in the `views/books` directory:
|
||||
In fact, in the `BooksController` class, inside of the update action where we want to render the edit template if the book does not update successfully, all of the following render calls would all render the `edit.html.erb` template in the `views/books` directory:
|
||||
|
||||
```ruby
|
||||
render :edit
|
||||
|
|
Loading…
Reference in New Issue