def pagination_hash_from(params)
    pagination_hash = {}
    pagination_hash[:page] = (params[:page] if params[:page].present?) || 1
...

Ruby Pagination Parameters

by Kavu, April 20, 2012 04:05, 4 refactorings, tagged with ruby, pagination

I think it's ugly solution,...

Aafc4ed0d6bdebb23074438a1c2717f1 Talk
<div class="pagination">
  <% letters = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','#'] -%>
  <% for letter in letters -%>
...

Ruby Creating an alphabetic for ...

by Adam Fortuna, December 16, 2007 08:27, 8 refactorings, tagged with alphabet, pagination

There's gotta be a much bet...

8571728785e5e350ddb58cd458533b12 Talk