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

 

  • Rodrigo Esteban Cordova Lopez

    Thank you!

  • Dhanshree Kamble

    Thank-you so much..!

by ryzalyusoff