Created
December 21, 2012 23:16
-
-
Save awesome/4356500 to your computer and use it in GitHub Desktop.
"Flash[:notice] VS Flash.now[:notice]"
-- http://ionrails.com/2009/09/19/flashnotice-vs-flash-nownotice/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Flash[:notice]‘s message will persist to the next action and should be used when redirecting to another action via the ‘redirect_to’ method. | |
Flash.now[:notice]‘s message will be displayed in the view your are rendering via the ‘render’ method." | |
-- http://ionrails.com/2009/09/19/flashnotice-vs-flash-nownotice/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment