I can’t test my login… ‘cos I can’t logout (haven’t put the logout button there yet).
I was able to test it once but now I am ‘stuck’ logged in!
How come I can’t use
http://localhost:3000/account/sign_out
and I get an error No route matches [GET] "/account/sign_out"
but rake routes gives me:
...
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
...
and my /account/sign_in and /account_sign_up url’s are ok
You tried to access that link via a GET method, but your route is DELETE, as you’ve posted.
So, to make that work, use the
methodparameter fromlink_to(I’m supposing you’re creating your link withlink_to)Something like this
Best regards