If you try to go to / users / sign _out by typing it in the address bar of your browser or usually referring to it, you will get this error. To summarize some of the comments and answers here and from problems when creating a repo on github:
This is an assigned functionality; RESTful applications should not change state with a GET request.
You can fix this by installing a link that uses the DELETE method, as indicated by @Trip, @fuzzyalej, and an update by @Joseph Silvashy.
Alternatively (and less recommended) in /config/initializers/devise.rb you can make the following change
config.sign_out_via = :delete
to
config.sign_out_via = :get
I ran into this problem, following along with http://railscasts.com/episodes/209-introducing-devise and with the older version that he used there, this is not a problem.
source share