1. Open routes.rb

2. Edit devise route to be like this:

devise_for :users
  as :user do
  get '/users/sign_out' => 'devise/sessions#destroy'
end

 

by ryzalyusoff