# Flash notice

**URL:** <https://www.ruby-forum.com/t/flash-notice/117195>\
**Category:** Rails\
**Created:** [October 14, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/flash-notice/117195 "2007-10-14T16:50:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 14, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/flash-notice/117195/1 "2007-10-14T16:50:06Z")

</div>

Has anyone noticed that flash notice dosent appear at all in firefox2  
running with ubuntu? Is there a more cleaner and universal solution  
rather than flash notice?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 14, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/flash-notice/117195/2 "2007-10-14T17:24:36Z")

</div>

On 14 Oct 2007, at 15:49, removed\_email\_address@domain.invalid wrote:

> Has anyone noticed that flash notice dosent appear at all in firefox2  
> running with ubuntu? Is there a more cleaner and universal solution  
> rather than flash notice?

Can’t say I have. But then again there is nothing in rails governing  
how flash[:notice] is displayed. Is there something particular about  
the way you are displaying it ?

Fred

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 14, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/flash-notice/117195/3 "2007-10-14T17:36:18Z")

</div>

On 10/14/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Has anyone noticed that flash notice dosent appear at all in firefox2  
> running with ubuntu? Is there a more cleaner and universal solution  
> rather than flash notice?

Like Fred said, the flash itself doesn’t have any presentation; it’s  
just a storage area in the session that gets cleared after each  
request as a convenience.

Perhaps you’re referring to the scaffold code that generates  
presentation for the flash. First question is: can you reproduce the  
problem on a plain vanilla install of Rails with no customization of  
the scaffolding or stylesheets. If not, the problem is in your app  
somewhere. If you can reproduce the problem, submit it to the Rails  
dev team (with a patch if possible).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 14, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/flash-notice/117195/4 "2007-10-14T19:31:32Z")

</div>

I am referring to my own code wich does not want to display the first  
presentation. Is there no other cleaner way to alert the user?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 14, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/flash-notice/117195/5 "2007-10-14T23:08:10Z")

</div>

I resolved the problem. I had my style sheets set to display the flash  
notifications in white 🙂

Flash is clean, but very basic. I would want more control over it like  
effects, color, positioning, etc.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 14, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/flash-notice/117195/6 "2007-10-14T23:14:36Z")

</div>

The flash is simply a hash in the session that automatically removes  
itself after the next request (or current request with flash.now). It’s  
up to you to decide how to display and style it.

-Bill

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 14, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/flash-notice/117195/7 "2007-10-14T22:35:59Z")

</div>

On 10/14/07, N/A N/A [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am referring to my own code wich does not want to display the first  
> presentation. Is there no other cleaner way to alert the user?

The flash is pretty clean, it’s about as basic as you can get. All the  
it does is keep the message around in between requests. What are you  
having trouble getting it to do? What failings does it have that  
you’re trying to get around?

Show some code, and we can take a look at what’s going on instead of  
guessing.
