class Object
Public Instance Methods
page_url_for(page)
click to toggle source
# File lib/bhf/platform/pagination.rb, line 2 def page_url_for(page) if @param_name.is_a?(Array) @params[@param_name[0]] = (@params[@param_name[0]] || {}).merge(@param_name[1] => (page <= 1 ? 1 : page)) return @template.url_for @params end @template.url_for @params.merge(@param_name => (page <= 1 ? 1 : page)) end