This project is archived and is in readonly mode.

#4911 ✓wontfix
PreciousBodilyFluids

[PATCH] Add :notice, :alert, and :flash as options to render.

Reported by PreciousBodilyFluids | June 20th, 2010 @ 08:01 AM

DHH added :notice, :alert and :flash as options to redirect_to, each of which set the flash hash before performing the redirect:

http://github.com/rails/rails/commit/e6cadd422b72ba9818cc2f3b22243a...

This patch gives the same options to render, setting values in flash.now. This gives the rendering/redirecting api some consistency. Tests are included, and everything passes on master.

Comments and changes to this ticket

<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>

Shared Ticket Bins

Attachments

Pages