Created
April 4, 2012 09:46
-
-
Save DiveInto/2300034 to your computer and use it in GitHub Desktop.
how to use flash to notice
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] = "Item successfully saved as your favourite!" | |
#很奇怪,看官方文档,rails3里应该flash消息应该可以直接用notice(类似: redirect_to :action=>:XXX,:notice => "msg"),但我试了不行,不知为何,所以这儿还是用的老的style,记下备忘。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment