# Redirect\_to and flash\[:notice\] issue

**URL:** <https://www.ruby-forum.com/t/redirect-to-and-flash-notice-issue/116329>\
**Category:** Rails\
**Created:** [October 4, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/redirect-to-and-flash-notice-issue/116329 "2007-10-04T14:59:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [October 4, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/redirect-to-and-flash-notice-issue/116329/1 "2007-10-04T14:59:43Z")

</div>

Hi,

I’m looking for a way to get messages that I put into flash[:notice]  
to be accessible on a different view/different action from where I am  
populating it. In one action, I am putting messages into the hash,  
and then at the end I use redirect\_to to load up a new action/view. I  
would like the messages that I have put into flash[:notice] to appear  
on this redirected to view, but it seems that the hash gets destroyed/  
emptied during the redirect. Does anybody have any suggestions as to  
how I could get this working?

Thanks,

Simon
