From bd277ac6ef67e0af5f40051f7424495d0b4de1ae Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 28 Jun 2013 09:08:19 -0300 Subject: [PATCH] Fix layouts and rendering guide example using flash.now instead Thanks @lintzchiang. [ci skip] --- 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 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