def link_to_previous_page(scope, name, options = {}, &block)
      prev_page = Kaminari::Helpers::PrevPage.new self, options.reverse_merge(:current_page => scope.current_page)

      link_to_if scope.prev_page.present?, name, prev_page.url, options.except(:params, :param_name).reverse_merge(:rel => 'prev') do
        block.call if block
      end
    end
def link_to_previous_page(scope, name, options = {}, &block)
      prev_page = Kaminari::Helpers::PrevPage.new self, options.reverse_merge(:current_page => scope.current_page)

      link_to_if scope.prev_page.present?, name, prev_page.url, options.except(:params, :param_name).reverse_merge(:rel => 'prev') do
        block.call if block
      end
    end
A simple "Twitter like" pagination link that creates a link to the previous page.

 ==== Examples
 Basic usage:

   <%= link_to_previous_page @items, 'Previous Page' %>

 Ajax:

   <%= link_to_previous_page @items, 'Previous Page', :remote => true %>

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

   <%= link_to_previous_page @users, 'Previous Page' do %>
     <span>At the Beginning</span>
   <% end %>