def link_to_next_slice(object, name, options = {}, &block)
      params = options[:params] ? self.params.merge(options.delete :params) : self.params
      param_name = options.delete(:param_name) || object.options.param_name
      link_to_unless object.last_slice?, name, params.merge_hashup(*param_name, object.current_slice + 1), options.reverse_merge(:rel => 'next') do
        block.call if block
      end
    end
def link_to_next_slice(object, name, options = {}, &block)
      params = options[:params] ? self.params.merge(options.delete :params) : self.params
      param_name = options.delete(:param_name) || object.options.param_name
      link_to_unless object.last_slice?, name, params.merge_hashup(*param_name, object.current_slice + 1), options.reverse_merge(:rel => 'next') do
        block.call if block
      end
    end
A simple "Twitter like" pagination link that creates a link to the next slice.

 ==== Examples
 Basic usage:

   <%= link_to_next_slice @article.paged, 'Next page' %>

 Ajax:

   <%= link_to_next_slice @article.paged, 'Next page', :remote => true %>

 By default, it renders nothing if there are no more results on the next slice.
 You can customize this output by passing a block.

   <%= link_to_next_slice @article.paged, 'Next page' do %>
     <span>No More slices</span>
   <% end %>