diff options
author | Keith Wansbrough <keithw@lochan.org> | 2011-01-27 11:39:47 -0800 |
---|---|---|
committer | Keith Wansbrough <keithw@lochan.org> | 2011-01-27 11:39:47 -0800 |
commit | 7ada0fb598b98bbb5a1dab371adb8f2348505df1 (patch) | |
tree | 0aad7b03719b55637c5c8f8a245a90a50b808c0b /railties/guides/source | |
parent | cc9301f459739e3eb3674b1b2e15057e35d25630 (diff) | |
download | rails-7ada0fb598b98bbb5a1dab371adb8f2348505df1.tar.gz rails-7ada0fb598b98bbb5a1dab371adb8f2348505df1.tar.bz2 rails-7ada0fb598b98bbb5a1dab371adb8f2348505df1.zip |
Refer to the correct action - it's the update action, in the special case where we want to render the edit view.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index f0e40b0980..fe400d3358 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -211,7 +211,7 @@ h5. 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. -In fact, in the BooksController class, inside of the edit 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 |