I had a working 1.2 app now being updated to 2.3. I’m using a flash
message which has worked fine. After the update to 2.3, the message no
longer displays when it should.
In application_controller.rb, I do a simple conditional to see if a
session has expired (time based). If it has, I reset_session, set a
flash message, and redirect_to the login page.
if — conditionals—
flash[:session_expired] = true
redirect_to(:controller => :login, :action => :login)
And the view uses a straightforward snippet:
<% if flash[:session_expired] -%>
Your session expired. Please login to start again.<% end -%>
And using <%= debug(flash) %> display an empty hash.
This just seems too simple to not work, and it worked just fine with
Has something changed? Somethig that didn’t interfere and reset the
flash in 1.2 that now does?