Permalink
Browse files

Fix layouts and rendering guide example using flash.now instead

Thanks @lintzchiang. [ci skip]
  • Loading branch information...
1 parent 55193e4 commit bd277ac6ef67e0af5f40051f7424495d0b4de1ae @carlosantoniodasilva carlosantoniodasilva committed Jun 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit bd277ac

Please sign in to comment.