aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-28 09:08:19 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-28 09:08:24 -0300
commitbd277ac6ef67e0af5f40051f7424495d0b4de1ae (patch)
treec6070b8635e19541cd2fbcad99d78d23d281998a /guides
parent55193e449a377c448e43d8fec42899ea1ff93b27 (diff)
downloadrails-bd277ac6ef67e0af5f40051f7424495d0b4de1ae.tar.gz
rails-bd277ac6ef67e0af5f40051f7424495d0b4de1ae.tar.bz2
rails-bd277ac6ef67e0af5f40051f7424495d0b4de1ae.zip
Fix layouts and rendering guide example using flash.now instead
Thanks @lintzchiang. [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/layouts_and_rendering.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md
index 1ab841b137..f6cac997ff 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -629,7 +629,7 @@ def show
@book = Book.find_by_id(params[:id])
if @book.nil?
@books = Book.all
- flash[:alert] = "Your book was not found"
+ flash.now[:alert] = "Your book was not found"
render "index"
end
end