fix for forum topic response

This commit is contained in:
albert
2013-01-24 14:37:39 -05:00
parent e0c563373a
commit 2f9db2399c
4 changed files with 9 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ class ForumPostsController < ApplicationController
rescue_from User::PrivilegeError, :with => "static/access_denied"
def new
@forum_topic = ForumTopic.find(params[:topic_id]) if params[:topic_id]
@forum_post = ForumPost.new_reply(params)
respond_with(@forum_post)
end