# Flash hash with ajax and redirect\_to

**URL:** <https://www.ruby-forum.com/t/flash-hash-with-ajax-and-redirect-to/91141>\
**Category:** Rails\
**Created:** [April 5, 2007, 2:28am UTC](https://www.ruby-forum.com/t/flash-hash-with-ajax-and-redirect-to/91141 "2007-04-05T02:28:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Invincible\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/bc79bd/32.png) [@Invincible\_C](https://www.ruby-forum.com/u/Invincible_C)\
**Post date:** [April 5, 2007, 2:28am UTC](https://www.ruby-forum.com/t/flash-hash-with-ajax-and-redirect-to/91141/1 "2007-04-05T02:28:29Z")

</div>

Hi,

I have a method in a controller which I am calling by using  
link\_to\_remote  
with update option.  
The method performs some operations, sets the status message in the  
flash  
hash as flash[:notice], and then redirects the call to another action.  
After redirect flash[:notice] disappears, is this behavior expected?

Thanks in advance  
-Invincible
