This commit is contained in:
Albert Yi
2017-01-16 12:57:37 -08:00
parent a49394e6cd
commit bdac591266
10 changed files with 10 additions and 41 deletions

View File

@@ -83,13 +83,6 @@ class PostsController < ApplicationController
end
end
def unvote
@post = Post.find(params[:id])
@post.unvote!
rescue PostVote::Error => x
@error = x
end
def home
if CurrentUser.user.is_anonymous?
redirect_to intro_explore_posts_path