Skip to content

Commit

Permalink
Default to delete on new templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jun 27, 2011
1 parent 42f0285 commit adb127b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/templates/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@
# Explorer requests.
# config.navigational_formats = [:"*/*", "*/*", :html]

# The default HTTP method used to sign out a resource. Default is :get.
# config.sign_out_via = :get
# The default HTTP method used to sign out a resource. Default is :delete.
config.sign_out_via = :delete

# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting
Expand Down

1 comment on commit adb127b

@farofeiro
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am total beginner here and having a problem opening the sign_out page from url. I was looking at the code for sessions_controller.rb and still refers to GET. Do I also need to change that file to make it work by any chance?

Please sign in to comment.