This commit is contained in:
albert
2013-02-19 14:36:31 -05:00
parent 306ec47f03
commit 359a17674c
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
class PoolVersionsController < ApplicationController
def index
@search = PoolVersion.search(params[:search])
@pool_versions = @search.paginate(params[:page])
@pool_versions = @search.order("id desc").paginate(params[:page])
end
end

View File

@@ -3,7 +3,7 @@ class PostVersionsController < ApplicationController
def index
@search = PostVersion.search(params[:search])
@post_versions = @search.order("id desc").paginate_sequential(params[:page])
@post_versions = @search.order("updated_at desc").paginate(params[:page], :count => 1_000_000)
respond_with(@post_versions)
end

View File

@@ -41,4 +41,4 @@
</table>
</div>
<%= sequential_paginator(post_versions) %>
<%= numbered_paginator(post_versions) %>