Got my Kaminari working (after some setbacks) and I finally have my pagination done. After I tested it, I realized there where three dots being displayed after the last-page-arrow (error picture). I believe there's nothing weird with my kaminari code but I paste it below.
Kaminari config file:
Kaminari.configure do |config|
config.default_per_page = 10
# config.max_per_page = nil
# config.window = 4
# config.outer_window = 0
# config.left = 0
# config.right = 0
# config.page_method_name = :page
# config.param_name = :page
end
My view:
<%= paginate @array %>
My controller:
def index
@array = Kaminari.paginate_array(Group.all).page(params[:page])
respond_with(@array)
end
Not sure if this is important but i edited the Kaminari buttons because i'm not usigng fontawesome in my project, so i change the icons to bootstrap glyphicons.