deleted posts are now hidden

This commit is contained in:
albert
2011-10-22 13:25:22 -04:00
parent b28817c5e5
commit f07bf9b2cc
10 changed files with 41 additions and 13 deletions

View File

@@ -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