Skip to content

Instantly share code, notes, and snippets.

@btwelch
Created January 24, 2015 17:49
Show Gist options
  • Save btwelch/49110630d4c5fadbfdde to your computer and use it in GitHub Desktop.
Save btwelch/49110630d4c5fadbfdde to your computer and use it in GitHub Desktop.
Rails Pagination Example
# This is how it is done, even in Rails 4
gem 'will_paginate'
@stripe_events = StripeEvent.paginate(:page => params[:page], :per_page => 20)
<% will_paginate @stripe_events %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment