mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove reference to rendering absolute files
Update guides/source/layouts_and_rendering.md Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
This commit is contained in:
parent
b13826fc44
commit
b9c05c0fe1
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ render template: "products/show"
|
||||||
|
|
||||||
#### Wrapping it up
|
#### Wrapping it up
|
||||||
|
|
||||||
The above three ways of rendering (rendering another template within the controller, rendering a template within another controller, and rendering an arbitrary file on the file system) are actually variants of the same action.
|
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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue