# Render\_componont and flash\[:notice\]

**URL:** <https://www.ruby-forum.com/t/render-componont-and-flash-notice/179106>\
**Category:** Rails\
**Created:** [November 17, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/render-componont-and-flash-notice/179106 "2009-11-17T20:17:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [November 17, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/render-componont-and-flash-notice/179106/1 "2009-11-17T20:17:03Z")

</div>

Hi,

When I install [http://github.com/lackac/render\_component/tree/rails-edge](http://github.com/lackac/render_component/tree/rails-edge)  
all my flash[:notice] do not appear on www.

I don’t know why 😕

Any ideas?

---

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [November 17, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/render-componont-and-flash-notice/179106/2 "2009-11-17T20:52:46Z")

</div>

This only happens when there is a redirect after the flash[:notice] was  
setup.  
If I uninstall render\_component everything acts as usual, flash messages  
work.

---

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [November 18, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/render-componont-and-flash-notice/179106/3 "2009-11-18T19:16:30Z")

</div>

Just to let you know.

[http://github.com/lackac/render\_component/issues#issue/1](http://github.com/lackac/render_component/issues#issue/1)

The quick-fix is to comment the line:  
flash.sweep if @\_session && !component\_request?
