edit link for original forum post goes to edit topic action

This commit is contained in:
albert
2013-02-25 09:39:27 -05:00
parent 0d20f5b5a6
commit 00934a1e13
4 changed files with 12 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ class ForumTopicsController < ApplicationController
def show
@forum_topic = ForumTopic.find(params[:id])
@forum_posts = ForumPost.search(:topic_id => @forum_topic.id).order("forum_posts.id").paginate(params[:page])
@forum_posts.all
respond_with(@forum_topic)
end