This project is archived and is in readonly mode.
[PATCH] Add :notice, :alert, and :flash as options to render.
-
José Valim
- State changed from new to wontfix
Thanks for your patch but tendering flash.now messages with a template is not a common pattern in most Rails applications. That said, I would prefer to leave the rendering stack simpler without need to check for extra flash keys.
-
Sean
- Importance changed from to Low
Any chance of reconsidering? This may a worthy addition. Flashing notices while rendering is I believe not uncommon (since it usually mean recycling the page due to an error). It also adds consistency between redirect_to and render.
-
Adam
This is definitely a common pattern in most rails application I have authored or edited. I'll be stealing it for my personal use at very least. Thanks anyway. (PS, found this by googling knowing about the update to redirect_to).
-
PreciousBodilyFluids
Thanks, at least someone will get some use out of it.
-
Adam
wrapped in a gem for convenience: http://rubygems.org/gems/flash_render
