def render_pager
      view.reset_cycle(:paginate)

      html = ""
      visible_pages = pager.visible_pages
      visible_pages.each do |page|
        html += content_tag(:li, :class => "pager #{visible_pages.first == page ? 'first_pager' : ''} #{visible_pages.last == page ? 'last_pager' : ''} #{view.cycle("pager_even", "pager_odd", :name => :paginate)}") do
          link_to_page page, page.nil? ? nil : 'paginate.pager'
        end
        html += "\n"
      end
      html.html_safe
    end
def render_pager
      view.reset_cycle(:paginate)

      html = ""
      visible_pages = pager.visible_pages
      visible_pages.each do |page|
        html += content_tag(:li, :class => "pager #{visible_pages.first == page ? 'first_pager' : ''} #{visible_pages.last == page ? 'last_pager' : ''} #{view.cycle("pager_even", "pager_odd", :name => :paginate)}") do
          link_to_page page, page.nil? ? nil : 'paginate.pager'
        end
        html += "\n"
      end
      html.html_safe
    end
render pager