Browse Source

Fix log out

pull/3/head
Angel Aviel Domaoan 4 years ago
parent
commit
094db92395
  1. 2
      app/components/sidenav_component/sidenav_component.html.erb
  2. 2
      config/initializers/devise.rb

2
app/components/sidenav_component/sidenav_component.html.erb

@ -5,6 +5,6 @@
<a class="nav-link" href="<%= decisions_path %>"> Desicions </a>
<a class="nav-link" href="<%= case_doctrines_path %>"> Case Doctrines </a>
<a class="nav-link" href="<%= subject_indexes_path %>"> Subject Indexes </a>
<a class="nav-link" href="#"> Logout </a>
<a class="nav-link" href="<%= destroy_user_session_path %>"> Log Out </a>
</nav>
</nav>

2
config/initializers/devise.rb

@ -266,7 +266,7 @@ Devise.setup do |config|
# config.navigational_formats = ['*/*', :html]
# The default HTTP method used to sign out a resource. Default is :delete.
config.sign_out_via = :delete
config.sign_out_via = :get
# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting

Loading…
Cancel
Save