我无法测试我的登录...因为我无法注销(还没有把注销按钮放在那里)。我能够测试一次,但现在我“卡住”了!
我怎么不能用
http://localhost:3000/account/sign_out
我得到一个错误No route matches [GET] "/account/sign_out"
但rake routes
给了我:
...
new_standard_user_session GET /account/sign_in(.:format) devise/sessions#new
standard_user_session POST /account/sign_in(.:format) devise/sessions#create
destroy_standard_user_session DELETE /account/sign_out(.:format) devise/sessions#destroy new_standard_user_registration GET /account/sign_up(.:format) devise/registrations#new
...
我/account/sign_in
和/account_sign_up
网址都可以