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:
parent
55193e449a
commit
bd277ac6ef
1 changed files with 1 additions and 1 deletions
|
@ -629,7 +629,7 @@ def show
|
||||||
@book = Book.find_by_id(params[:id])
|
@book = Book.find_by_id(params[:id])
|
||||||
if @book.nil?
|
if @book.nil?
|
||||||
@books = Book.all
|
@books = Book.all
|
||||||
flash[:alert] = "Your book was not found"
|
flash.now[:alert] = "Your book was not found"
|
||||||
render "index"
|
render "index"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue