Use `button_to` helper to generate a proper logout button
This commit is contained in:
parent
435ddf2415
commit
75b93d3535
|
@ -32,6 +32,6 @@
|
||||||
%i.fa.fa-fw.fa-gavel
|
%i.fa.fa-fw.fa-gavel
|
||||||
= t('views.navigation.moderation')
|
= t('views.navigation.moderation')
|
||||||
.dropdown-divider
|
.dropdown-divider
|
||||||
%a.dropdown-item{ href: destroy_user_session_path, data: { method: :delete } }
|
= button_to destroy_user_session_path, method: 'delete', class: 'dropdown-item' do
|
||||||
%i.fa.fa-fw.fa-sign-out
|
%i.fa.fa-fw.fa-sign-out
|
||||||
= t 'views.sessions.destroy'
|
= t 'views.sessions.destroy'
|
||||||
|
|
|
@ -26,6 +26,6 @@
|
||||||
%i.fa.fa-fw.fa-gavel
|
%i.fa.fa-fw.fa-gavel
|
||||||
= t('views.navigation.moderation')
|
= t('views.navigation.moderation')
|
||||||
.dropdown-divider
|
.dropdown-divider
|
||||||
%a.dropdown-item{ href: destroy_user_session_path, data: { method: :delete } }
|
= button_to destroy_user_session_path, method: 'delete', class: 'dropdown-item' do
|
||||||
%i.fa.fa-fw.fa-sign-out
|
%i.fa.fa-fw.fa-sign-out
|
||||||
= t 'views.sessions.destroy'
|
= t 'views.sessions.destroy'
|
||||||
|
|
Loading…
Reference in New Issue