def render
      content_tag(:ul) do
        html = "\n"

        if show_first_page?
          html += content_tag(:li, :class => "first_page") do
            link_to_page collection.first_page, 'paginate.first_page_label'
          end
          html += "\n"
        end

        if show_previous_page?
          html += content_tag(:li, :class => "previous_page") do
            link_to_page collection.previous_page, 'paginate.previous_page_label'
          end
          html += "\n"
        end

        html += render_pager

        if show_next_page?
          html += content_tag(:li, :class => "next_page") do
            link_to_page collection.next_page, 'paginate.next_page_label'
          end
          html += "\n"
        end

        if show_last_page?
          html += content_tag(:li, :class => "last_page") do
            link_to_page collection.last_page, 'paginate.last_page_label'
          end
          html += "\n"
        end
        html.html_safe
      end
    end
def render
      content_tag(:ul) do
        html = "\n"

        if show_first_page?
          html += content_tag(:li, :class => "first_page") do
            link_to_page collection.first_page, 'paginate.first_page_label'
          end
          html += "\n"
        end

        if show_previous_page?
          html += content_tag(:li, :class => "previous_page") do
            link_to_page collection.previous_page, 'paginate.previous_page_label'
          end
          html += "\n"
        end

        html += render_pager

        if show_next_page?
          html += content_tag(:li, :class => "next_page") do
            link_to_page collection.next_page, 'paginate.next_page_label'
          end
          html += "\n"
        end

        if show_last_page?
          html += content_tag(:li, :class => "last_page") do
            link_to_page collection.last_page, 'paginate.last_page_label'
          end
          html += "\n"
        end
        html.html_safe
      end
    end
render html for pagination