Skip to content

Instantly share code, notes, and snippets.

@Fitzsimmons
Created October 31, 2012 20:43
Show Gist options
  • Save Fitzsimmons/3989744 to your computer and use it in GitHub Desktop.
Save Fitzsimmons/3989744 to your computer and use it in GitHub Desktop.
def index
arel = DocumentFilter.find(params)
@documents = Pager.new(arel, :page => params[:page]).paged_results
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment