Closed msg7086 closed 1 year ago
Was following docs and wrote this code:
@posts = Post.search @term, with: conditions, order: 'created_at DESC', page: params[:page], sql: {include: [:statistic, :user, :category, :team]}
And in view
will_paginate @posts, :class => 'pull-right', :inner_window => 2, :renderer => BootstrapPagination::Rails
I always only get 1 page. If I manually pass page=2 I get 2 pages. What did I miss here?
Thanks.
irb(main):029:0> p.current_page => 1 irb(main):030:0> p.total_pages => 1 irb(main):031:0> p.total_entries => 286
Somehow total_pages is always 1?
total_pages
Seems like it's related to manticore.
Duplicate of #1213 #1230.
Was following docs and wrote this code:
And in view
I always only get 1 page. If I manually pass page=2 I get 2 pages. What did I miss here?
Thanks.