我今天开始尝试使用 devise。 版本是 ruby 1.9.3 rails 3.2.11 devise (2.2.3)
按照http://asciicasts.com/episodes/209-introducing-devise开始试验 已经可以出现http://localhost:3000/users/sign_up的注册页面,并且可以正确登陆上。 但是访问 users/sign_out 总是提示 Routing Error
No route matches [GET] "/users/sign_out" Try running rake routes for more information on available routes.
我在终端也查看了 rake routes
blog rake routes new_user_session GET /users/sign_in(.:format) devise/sessions#new user_session POST /users/sign_in(.:format) devise/sessions#create destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy user_password POST /users/password(.:format) devise/passwords#create new_user_password GET /users/password/new(.:format) devise/passwords#new edit_user_password GET /users/password/edit(.:format) devise/passwords#edit PUT /users/password(.:format) devise/passwords#update cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel user_registration POST /users(.:format) devise/registrations#create new_user_registration GET /users/sign_up(.:format) devise/registrations#new edit_user_registration GET /users/edit(.:format) devise/registrations#edit PUT /users(.:format) devise/registrations#update DELETE /users(.:format) devise/registrations#destroy
确实存在 users/sign_out 不知道问题出在哪里