Module: Pagination::PathForHelper

Includes:
Params::CurrentHelper
Included in:
FirstPageLinkForHelper, LastPageLinkForHelper, NextPageLinkForHelper, PrevPageLinkForHelper
Defined in:
lib/action_set/helpers/pagination/path_for_helper.rb

Instance Method Summary collapse

Methods included from Params::CurrentHelper

#current_params

Instance Method Details

#pagination_path_for(page) ⇒ Object



9
10
11
12
# File 'lib/action_set/helpers/pagination/path_for_helper.rb', line 9

def pagination_path_for(page)
  page ||= 1
  url_for paginate_params_for(page)
end