From 89f8e23d922a320e3222eabbe09b2781e0d3c96f Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 27 Jan 2013 01:12:27 -0500 Subject: [PATCH] Fixed redirect after post update --- app/controllers/posts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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