Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从自定义控制器中退出设计会话?
我们有任何内置功能来做到这一点吗?就像我们有user_signed_in?
user_signed_in?
设计中有一个sign_out方法。您可以不带参数调用它。见文档。
sign_out
可以清除会话:
reset_session