add limit parameter to everything
This commit is contained in:
@@ -10,7 +10,7 @@ class PostFlagsController < ApplicationController
|
||||
|
||||
def index
|
||||
@search = PostFlag.order("id desc").search(params[:search])
|
||||
@post_flags = @search.paginate(params[:page])
|
||||
@post_flags = @search.paginate(params[:page], :limit => params[:limit])
|
||||
respond_with(@post_flags) do |format|
|
||||
format.xml do
|
||||
render :xml => @post_flags.to_xml(:root => "post-flags")
|
||||
|
||||
Reference in New Issue
Block a user