进入实训后的评论数量与处于评论tab页面的数量不一致,且进入评论tab页面比较慢

This commit is contained in:
daiao 2017-10-17 09:27:00 +08:00
parent fb6c38ec1e
commit 94eef3cf19
1 changed files with 1 additions and 9 deletions

View File

@ -11,15 +11,7 @@ class ArticleHomepagesController < ApplicationController
def create
if User.current.logged?
if @article.save
if params[:set_homepage]
User.current.homepage.update_attribute(:article_id, @article.id)
end
redirect_to user_homepages_path(:user_id => User.current.id)
end
else
redirect_to signin_path
end
end
def show