进入实训后的评论数量与处于评论tab页面的数量不一致,且进入评论tab页面比较慢
This commit is contained in:
parent
fb6c38ec1e
commit
94eef3cf19
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue