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 @@
人气
综合
- <%= link_to "发布新帖",new_forum_memo_path(:forum_id => Forum.first.id), :class => "c_white db creatPostIcon bGreen" %> + <%= link_to "发布新帖", new_forum_memo_path(:forum_id => Forum.first.id, :forum_index => true), :class => "c_white db creatPostIcon bGreen" %>
diff --git a/app/views/memos/_form.html.erb b/app/views/memos/_form.html.erb index 1128d0a86..bab98541b 100644 --- a/app/views/memos/_form.html.erb +++ b/app/views/memos/_form.html.erb @@ -37,7 +37,9 @@