This commit is contained in:
albert
2013-02-23 11:55:11 -05:00
parent f2bdd7557f
commit 3967cf7343
4 changed files with 23 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class ForumPostsController < ApplicationController
@forum_post = ForumPost.find(params[:id])
check_privilege(@forum_post)
@forum_post.update_attributes(params[:forum_post])
respond_with(@forum_post, :location => forum_post_path(@forum_post))
respond_with(@forum_post, :location => forum_topic_path(@forum_post.topic, :page => @forum_post.forum_topic_page))
end
def destroy