fixes #121: editing comments shifts their position

This commit is contained in:
albert
2011-10-27 18:38:24 -04:00
parent 2d7ebc8810
commit c9cb34beaf
2 changed files with 3 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ class ForumTopicsController < ApplicationController
def show
@forum_topic = ForumTopic.find(params[:id])
@forum_posts = ForumPost.search(:topic_id_eq => @forum_topic.id).paginate(params[:page])
@forum_posts = ForumPost.search(:topic_id_eq => @forum_topic.id).order("forum_posts.id").paginate(params[:page])
respond_with(@forum_topic)
end