You can actually set the flash message when you redirect instead:
http://api.rubyonrails.org/classes/ActionController/Redirecting.html#method-i-redirect_to