deleted posts are now hidden
This commit is contained in:
@@ -15,6 +15,8 @@ class SessionsController < ApplicationController
|
||||
|
||||
def destroy
|
||||
session.delete(:user_id)
|
||||
cookies.delete(:cookie_password_hash)
|
||||
cookies.delete(:user_name)
|
||||
redirect_to(posts_path, :notice => "You are now logged out.")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user