From b9c05c0fe1468d9917f2136644746ee916797adf Mon Sep 17 00:00:00 2001 From: Michael Hagar Date: Thu, 18 Jun 2020 21:51:38 -0500 Subject: [PATCH] Remove reference to rendering absolute files Update guides/source/layouts_and_rendering.md Co-authored-by: Jonathan Hefner --- guides/source/layouts_and_rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md index b390de9bce..6ec5613e3f 100644 --- a/guides/source/layouts_and_rendering.md +++ b/guides/source/layouts_and_rendering.md @@ -151,7 +151,7 @@ render template: "products/show" #### 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: