0
我已經添加的範圍,我的色器件代碼,如何使用devise gem重定向到期望頁面,並將root_path設置爲sign_in頁面?
devise_scope :authorizes do
authenticated :authorizes do
root :to => "auth#main"
end
unauthenticated :authorizes do
root :to => "devise/session#new"
end
end
root :to => "auth#main"
- 中有什麼
scope
問題? - 錯誤
localhost:3000
是NO route matches [get] "/"
。
謝謝。