fix for edit forum post links

This commit is contained in:
albert
2013-02-19 12:39:32 -05:00
parent fd14dfb7b5
commit 763b792126
2 changed files with 6 additions and 3 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_topic_path(@forum_post.topic, :page => @forum_post.topic.last_page))
respond_with(@forum_post, :location => forum_post_path(@forum_post))
end
def destroy