My scenario:
In my controller, after confirming the user, I redirect to root (a landing page: statics#landing) and I attach a notice:
redirect_to root_url, notice: 'Confirmation successful.'
but there, I always check if the user is already signed in, and if so I’m redirecting him to the actual index:
def landing
redirect_to actual_index_url if (user.signed_in?)
end
How can I propagate the confirmation notice to the last page?
I think you’re looking for
flash.keep.http://railsapi.com/doc/rails-v3.0.8rc1/classes/ActionDispatch/Flash/FlashHash.html#M006014