尽管有很多类似的问题,但我已经搜索了几个小时但仍然无法解决它。
环境
导轨3.0.9
红宝石 1.9.2
设计1.4.2
我使用以下方法更改了默认登录网址:
5 resources :users
6 devise_for :users, :path => "", :path_names => { :sign_in => 'login', :sign_out
=> 'logout', :password => 'secret', :confirmation => 'verification', :unlock =>
'unblock', :registration => 'register', :sign_up => 'cmon_let_me_in' }
And the http://localhost:3000/登录对我来说效果很好
但我包括
= link_to 'sign_out', destroy_user_session_path, :method => :delete
在我的 application.haml 中,单击它后,它说没有路由匹配“/logout”
为什么?
请帮我。