fixes #400
This commit is contained in:
@@ -63,7 +63,7 @@ private
|
||||
end
|
||||
|
||||
def index_by_post
|
||||
@posts = Post.commented_before(Time.now).tag_match(params[:tags]).order("posts.id desc").paginate(params[:page], :limit => 5)
|
||||
@posts = Post.commented_before(Time.now).tag_match(params[:tags]).paginate(params[:page], :limit => 5)
|
||||
respond_with(@posts) do |format|
|
||||
format.html {render :action => "index_by_post"}
|
||||
end
|
||||
|
||||
@@ -17,7 +17,7 @@ class ForumPostsController < ApplicationController
|
||||
|
||||
def index
|
||||
@search = ForumPost.active.search(params[:search])
|
||||
@forum_posts = @search.paginate(params[:page]).order("forum_posts.id desc")
|
||||
@forum_posts = @search.paginate(params[:page]).order("forum_posts.id DESC")
|
||||
respond_with(@forum_posts)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user