Skip to content

Instantly share code, notes, and snippets.

@hidenba
Created February 29, 2012 05:19
Show Gist options
  • Save hidenba/1938099 to your computer and use it in GitHub Desktop.
Save hidenba/1938099 to your computer and use it in GitHub Desktop.
@hoges =Kaminari::paginate_array(Hoge.find_by_sql('select * from hoges limit 25'), total_count: 37,).page(1).per(25)
paginate @hoges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment