module PaginationHelper

This module overloads the paginate method defined by Kaminari to force kaminari to use the routes provided by the theme.

This might not be needed when Kaminari reaches 1.0 per

Instance methods

  1. paginate (scope, options = {}, &block)

    Returns pagination for the given scope(record).

    The argument list is the same as the one declared by kaminari to keep the expected behavior when calling super


    <%= paginate(@posts) %>