use flash.now to prevent late flashes
This commit is contained in:
parent
fd61838946
commit
2f057ca7ca
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class ItemsController < ApplicationController
|
||||||
begin
|
begin
|
||||||
@results = Item.search(@query).alphabetize.paginate :page => params[:page]
|
@results = Item.search(@query).alphabetize.paginate :page => params[:page]
|
||||||
rescue
|
rescue
|
||||||
flash[:alert] = $!.message
|
flash.now[:alert] = $!.message
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue