Implement user sign out (destroy current session)

This commit is contained in:
Thibault Jouan
2015-05-01 10:55:32 +00:00
parent 7ecf47a0f9
commit 4b0f4d391f
3 changed files with 8 additions and 0 deletions

View File

@@ -11,4 +11,9 @@ class SessionsController < ApplicationController
render 'new'
end
end
def destroy
reset_session
redirect_to :root
end
end