add limit parameter to everything

This commit is contained in:
Toks
2013-05-15 01:01:19 -04:00
parent 6ca588f2e0
commit 9ccf1e0f8f
28 changed files with 28 additions and 28 deletions

View File

@@ -10,7 +10,7 @@ class PostAppealsController < ApplicationController
def index
@search = PostAppeal.order("id desc").search(params[:search])
@post_appeals = @search.paginate(params[:page])
@post_appeals = @search.paginate(params[:page], :limit => params[:limit])
respond_with(@post_appeals) do |format|
format.xml do
render :xml => @post_appeals.to_xml(:root => "post-appeals")