```ruby
# Modified from flow_pagination gem
module TwitterPagination

  # TwitterPagination renderer for (Mislav) WillPaginate Plugin
  class LinkRenderer < WillPaginate::LinkRenderer

    def to_html
      pagination = ''

      if self.current_page < self.last_page
        pagination = @template.link_to_remote(
          'More',
          :url => { :controller => @template.controller_name,
            :action => @template.action_name,
            :params => @template.params.merge!(:page => self.next_page)},
          :method => @template.request.request_method,
          :html => { :class => 'twitter_pagination' })
      end

      @template.content_tag(:div, pagination, :class => 'pagination', :id => self.html_attributes[:id])
    end

    protected

      # Get current page number
      def current_page
        @collection.current_page
      end

      # Get last page number
      def last_page
        @last_page ||= WillPaginate::ViewHelpers.total_pages_for_collection(@collection)
      end

      # Get next page number
      def next_page
        @collection.next_page
      end

  end

end
```

Update TwitterPagination class for new will_paginate
user
```ruby
module TwitterPagination
  class LinkRenderer < WillPaginate::ViewHelpers::LinkRenderer
    protected

    def next_page
      previous_or_next_page(@collection.next_page, "More", 'twitter_pagination')
    end

    def pagination
      [ :next_page ]
    end

    # Override will_paginate's <tt>link</tt> method since it generates its own <tt>a</tt>
    # attribute and won't support <tt>:remote => true</tt>
    def link(text, target, attributes = {})
      if target.is_a? Fixnum
        attributes[:rel] = rel_value(target)
        target = url(target)
      end
      @template.link_to(text, target, attributes.merge(:remote => true))
    end
  end
end
```
assistant