module Pagination::PathForHelper
Public Instance Methods
pagination_path_for(page)
click to toggle source
# 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
Private Instance Methods
paginate_params_for(page)
click to toggle source
# File lib/action_set/helpers/pagination/path_for_helper.rb, line 16 def paginate_params_for(page) current_params .deep_merge(paginate: { page: page }) end