This project is archived and is in readonly mode.

#4369 ✓resolved
Helmut Juskewycz

Flash convenience methods "notice" and "alert" should also be available for FlashNow

Reported by Helmut Juskewycz | April 12th, 2010 @ 11:06 AM | in 3.0.2

Hi,

I guess the title describes it already pretty well. I think that for consistency, a FlashNow object should also have the same convenience methods as a Flash object has. In my mind a FlashNow object is the same as a Flash object, only that it isn't around for the next action, but has the same behavior.

So instead of

Flash.notice = "Saved"
Flash.now[:notice] = "Saved"

I can write

Flash.notice = "Saved"
Flash.now.notice = "Saved"

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages