1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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