diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 95b35a4f3..0ddecd2f0 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -83,14 +83,6 @@ class PostsController < ApplicationController end end - def home - if CurrentUser.user.is_anonymous? - redirect_to intro_explore_posts_path - else - redirect_to posts_path(:tags => params[:tags]) - end - end - def random count = Post.fast_count(params[:tags], :statement_timeout => CurrentUser.user.statement_timeout) @post = Post.tag_match(params[:tags]).random diff --git a/config/routes.rb b/config/routes.rb index 8f8150134..387f0b572 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -196,7 +196,6 @@ Rails.application.routes.draw do end resource :votes, :controller => "post_votes", :only => [:create, :destroy] collection do - get :home get :random end member do