Fixes controller name highlight in guide

This commit is contained in:
Ghouse Mohamed 2022-02-23 04:16:04 +05:30
parent ce1517ea52
commit a12305a2e8
1 changed files with 1 additions and 1 deletions

View File

@ -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