module UsefulHelpers::Helpers::PaginateHelper
Public Instance Methods
paginate(collection)
click to toggle source
# File lib/useful_helpers/helpers/paginate_helper.rb, line 5 def paginate(collection) html = will_paginate(collection).gsub('/page-1"', '/"').gsub('_/', '') rescue nil if html && request.fullpath.include?("page-") html = html.gsub("page-#{params[:page]}/", "") end raw html end