开发者

Devise, flash message when require_no_authentication + redirect

开发者 https://www.devze.com 2023-02-01 00:54 出处:网络
Could you tell me whats the best practice to include flash messages f.e. \"You must be logged out to view the requested site\",

Could you tell me whats the best practice to include flash messages f.e. "You must be logged out to view the requested site",

when the require_no_authentication-filter is set and the user accesses a site, which becomes filtered. The flash message should appear in every controller where i call the before filter, not only in the device controllers (so inheritance isn't enough)...

Per default there are no flash-messages, which is absurd开发者_如何转开发, from my point of view.


This behaviour was changed from the device maintainers. You are now able to do that the same way the other hooks become called.

0

精彩评论

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