Created
January 24, 2015 17:49
-
-
Save btwelch/49110630d4c5fadbfdde to your computer and use it in GitHub Desktop.
Rails Pagination Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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