Fix layouts and rendering guide example using flash.now instead

Thanks @lintzchiang. [ci skip]
This commit is contained in:
Carlos Antonio da Silva 2013-06-28 09:08:19 -03:00
parent 55193e449a
commit bd277ac6ef
1 changed files with 1 additions and 1 deletions

View File

@ -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