Browse files

Fix bug in code example from layouts and rendering guide

The code in 2.3.2 assumed that render has an alert option like
redirect_to to create a flash alert message, but it doesn't.
  • Loading branch information...
1 parent 8743f80 commit f9f6fc7a91fecc7a52c812d2900b9ae5d4636743 @brainkim brainkim committed Feb 18, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 guides/source/
@@ -568,7 +568,8 @@ def show
@book = Book.find_by_id(params[:id])
if @book.nil?
@books = Book.all
- render "index", alert: "Your book was not found!"
+ flash[:alert] = "Your book was not found"
+ render "index"

2 comments on commit f9f6fc7


Should it use


Yup, just fixed bd277ac, thanks!

Please sign in to comment.