【发布时间】:2020-12-11 10:35:32
【问题描述】:
设计authenticate_user! 方法重定向到新的会话路径Users::SessionsController#new。有没有办法将其配置为重定向到新的用户路径?
Started GET "/" for ::1 at 2020-08-21 22:54:20 -0700
Processing by WelcomeController#index as HTML
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 1174)
Started GET "/users/login" for ::1 at 2020-08-21 22:54:20 -0700
Processing by Users::SessionsController#new as HTML
【问题讨论】:
标签: ruby-on-rails devise