def slice_entries_info(object, options = {})
      entry_name = options[:entry_name] || object.options.as
      output = ""
      if object.slice_number < 2
        output = case object.slice_number
        when 0 then "No #{entry_name} found"
        when 1 then "Displaying <b>1</b> #{entry_name}"
        else; "Displaying <b>all #{object.slice_number}</b> #{entry_name.to_s.pluralize}"
        end
      else
        output = %{Displaying #{entry_name} <b>#{object.current_slice}</b> of <b>#{object.slice_number}</b>}
      end
      output.html_safe
    end
def slice_entries_info(object, options = {})
      entry_name = options[:entry_name] || object.options.as
      output = ""
      if object.slice_number < 2
        output = case object.slice_number
        when 0 then "No #{entry_name} found"
        when 1 then "Displaying <b>1</b> #{entry_name}"
        else; "Displaying <b>all #{object.slice_number}</b> #{entry_name.to_s.pluralize}"
        end
      else
        output = %{Displaying #{entry_name} <b>#{object.current_slice}</b> of <b>#{object.slice_number}</b>}
      end
      output.html_safe
    end
Renders a helpful message with numbers of displayed vs. total entries.
 Ported from mislav/will_paginate

 ==== Examples
 Basic usage:

   <%= slice_entries_info @article.paged %>
   #-> Displaying paged 6 of 26

 By default, the message will use the stringified +method_name (+:as+ option)+ implemented as slicer method.
 Override this with the <tt>:entry_name</tt> parameter:

   <%= slice_entries_info @article.paged, :entry_name => 'page' %>
   #-> Displaying page 6 of 26