# Problem with placement of flash in layout

**URL:** <https://www.ruby-forum.com/t/problem-with-placement-of-flash-in-layout/47810>\
**Category:** Rails\
**Created:** [November 14, 2005, 2:38am UTC](https://www.ruby-forum.com/t/problem-with-placement-of-flash-in-layout/47810 "2005-11-14T02:38:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benedictsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/74df32/32.png) [@benedictsmith](https://www.ruby-forum.com/u/benedictsmith)\
**Post date:** [November 14, 2005, 2:38am UTC](https://www.ruby-forum.com/t/problem-with-placement-of-flash-in-layout/47810/1 "2005-11-14T02:38:47Z")

</div>

In my application.rhtml I have the following:

\<% if flash[:notice] %\>

\<%= flash[:notice] %\>
\<% end -%\>
 \<%= render\_component(:controller =\> "application", :action =\> "build\_menu") %\>

\<%= @content\_for\_layout %\>

While this works, the flash simply doesn’t appear when placed after the  
render\_component helper. It’s not a CSS problem because the flash  
doesn’t appear  
anywhere in the final page source code. Have I gotten something very  
wrong? :-/

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![benedictsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/74df32/32.png) [@benedictsmith](https://www.ruby-forum.com/u/benedictsmith)\
**Post date:** [November 14, 2005, 2:50am UTC](https://www.ruby-forum.com/t/problem-with-placement-of-flash-in-layout/47810/2 "2005-11-14T02:50:49Z")

</div>

Hi !  
2005/11/13, Ben [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> While this works, the flash simply doesn’t appear when placed after the  
> render\_component helper. It’s not a CSS problem because the flash doesn’t appear  
> anywhere in the final page source code. Have I gotten something very wrong? :-/

This is a known bug: #2291  
[http://dev.rubyonrails.com/ticket/2291](http://dev.rubyonrails.com/ticket/2291)

This problem is supposed to be resolved in r2722, which happened prior  
to 0.14.3 being released.

Hope that helps,  
FranÃ§ois

---

<div class="post-metadata">

**Author:** ![benedictsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/74df32/32.png) [@benedictsmith](https://www.ruby-forum.com/u/benedictsmith)\
**Post date:** [November 14, 2005, 10:15am UTC](https://www.ruby-forum.com/t/problem-with-placement-of-flash-in-layout/47810/3 "2005-11-14T10:15:00Z")

</div>

francois.beausoleil wrote:

> Hi !  
> 2005/11/13, Ben [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > While this works, the flash simply doesn’t appear when placed after the  
> > render\_component helper. It’s not a CSS problem because the flash doesn’t appear  
> > anywhere in the final page source code. Have I gotten something very wrong? :-/
> 
> This is a known bug: #2291  
> [Peak Obsession](http://dev.rubyonrails.com/ticket/2291)
> 
> This problem is supposed to be resolved in r2722, which happened prior  
> to 0.14.3 being released.
> 
> Hope that helps,  
> FranÃ§ois

Ok, thanks very much - although it’s annoying, I’m relieved it’s not due  
to me!
