开发者

Will my flash message show up if I do a redirect_to action?

I don't see any flash message on the page when I do this fro开发者_Python百科m my reset password page:

flash[:notice] = "Password has been reset"
redirect_to :action => 'login'

Does something not look right?


For redirect_to, you can also do this:

redirect_to :action => 'login', :notice => "A flash message"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜