Module: PaginationHelper

Defined in:
app/helpers/pagination_helper.rb

Defined Under Namespace

Classes: FoundationPaginationListLinkRenderer

Instance Method Summary collapse

Instance Method Details

#foundation_paginate(pages, options = {}) ⇒ Object

Helper method to output Zurb Foundation compatible pagination.


4
5
6
7
8
9
10
11
12
13
# File 'app/helpers/pagination_helper.rb', line 4

def foundation_paginate(pages, options = {})
  will_paginate(pages, options.reverse_merge({
     class: 'pagination',
     inner_window: 2,
     outer_window: 0,
     renderer: PaginationHelper::FoundationPaginationListLinkRenderer,
     previous_label: '«'.html_safe,
     next_label: '»'.html_safe
  }))
end