I have a rails 4.2.0 app running and my flash alerts are not showing up on my review server but it works just fine in development and production. I setup these couple of test actions in a controller in all three environments and the only one that doesn't work is review:
def test
flash[:notice] = 'test alert'
redirect_to test1_path
end
def test1
flash[:notice] ||= 'This is hard coded alert'
render text: flash[:notice]
end
Visiting /test
on development and production redirects to /test1
and display test alert
. In my review environment, redirect happens but shows This is hard coded alert
.
Can there be any server config that would prevent flash alerts from showing up? Any clue about what this might be related to is very appreciated.
rake tmp:sessions:clear
on the server, cleared browser cookies and it's back to normal. Thanks Unixmonkey! If you want to put it in an answer, I will happily accept it! – Alex Terletskiy