Fix logging with with Javascript disabled

This commit is contained in:
Christoph Haas 2018-05-28 16:57:01 +02:00
parent 2a0c879d53
commit 1c3f692ec0
2 changed files with 3 additions and 1 deletions

View file

@ -7,5 +7,5 @@
a href='#'
= fa_icon 'image 2x', text: 'My uploads'
li
= link_to destroy_user_session_path, :method => :delete
= link_to destroy_user_session_path
= fa_icon 'lock 2x', text: 'Logout'

View file

@ -244,6 +244,8 @@ Devise.setup do |config|
# The default HTTP method used to sign out a resource. Default is :delete.
# config.sign_out_via = :delete
# Workaround: logging out would not work without Javascript otherwise
config.sign_out_via = :get
# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting