Implement user sign out (destroy current session)
This commit is contained in:
@@ -11,4 +11,9 @@ class SessionsController < ApplicationController
|
||||
render 'new'
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
reset_session
|
||||
redirect_to :root
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user