My rails version:
rails -v
Rails 4.0.2
I use Devise for users model.
Signout link is:
<%= link_to 'Sign out', destroy_user_session_path, method: :delete %>
When I click on the link I get this error:
AbstractController::ActionNotFound at /users/sign_out
The action 'show' could not be found for UsersController
By executing rake routes I get this:
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
Logs in development.log
Started GET "/users/sign_out" for 127.0.0.1 at 2013-12-28 20:45:06 +0000
AbstractController::ActionNotFound - The action 'show' could not be found for UsersController:
actionpack (4.0.2) lib/abstract_controller/base.rb:131:in `process'
actionpack (4.0.2) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.2) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.2) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:680:in `call'
I don't understand why it searches for show action. Just for the fun of it I created the show action in users controller and the show view. What it does then is to redirect to the show action. No clue why.
If you need any other info please let me know. Any clue what's wrong?