I\'m trying to do a redirect while setting the flash[:error] value. (Rails 3.0.10)
In my view I have
<%= flash[:error] %>
If you are having problem to keep the flash after redirecting to another path, then use this.
flash.keep
in your method, before redirecting.