diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 394bc10..cfb916c 100755 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -35,7 +35,7 @@ class PostsController < ApplicationController def update if @post.update_attributes(params[:post]) flash[:notice] = "Post was successfully updated." - redirect_to topic_path(@post.topic) + redirect_to topic_path(@post.topic, :page => @post.topic.posts.page.per(10).num_pages, :anchor => @post.id) end end