diff --git a/app/controllers/memos_controller.rb b/app/controllers/memos_controller.rb index 3e5127897..8e84f2659 100644 --- a/app/controllers/memos_controller.rb +++ b/app/controllers/memos_controller.rb @@ -28,6 +28,7 @@ class MemosController < ApplicationController end def new + # 如何是问吧主页来的,导航不显示具体贴吧名 @memo = Memo.new @my_forums_count = Memo.where("author_id =? and parent_id is null", User.current.id).count @my_memos_count = Memo.where("author_id =? and parent_id is not null", User.current.id).count diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb index d324a9770..5b9f374f8 100644 --- a/app/views/forums/index.html.erb +++ b/app/views/forums/index.html.erb @@ -9,7 +9,7 @@