will-paginate Questions

4

Solved

Documentation is lacking for will_paginate custom renderers: There is no documentation how to write your own link renderer, but the source code is pretty self-explanatory. Dive into it, and sele...
Erg asked 21/6, 2017 at 15:57

2

Hi I have a rails4 app using pagination with the will_paginate gem. Is there a way to handle pagination with objects created very often? If you call the first page and right after that the page 2,...
Divinadivination asked 31/5, 2014 at 19:18

4

I'm trying to paginate with will_paginate in my rails app. I'm following the rails Tutorial by Michael Hartl. In my controller I have def index @users = User.paginate(page: params[:page]) end I...
Photobathic asked 17/4, 2019 at 10:23

6

Solved

I wonder if anyone could please tell me if will_paginate can support JSON out of the box or if this has to be hacked? I would like to add page data to the JSON responses while will_paginate manage...
Docent asked 15/1, 2011 at 10:54

4

Solved

I'm trying to use the will_paginate gem but something's wrong. I'm stuck with an undefined method `paginate' error. I read many issues and try a lot of things. Here's what I've got : This is my Lo...
Fastidious asked 14/6, 2013 at 9:49

5

Solved

What am I missing here? I am using the haml_scaffold generator and the pages work fine with will_paginate. When I start tinkering I end up with this 'total_pages' error and I'm not sure what I am d...
Obie asked 11/9, 2009 at 3:34

6

Solved

I am using will_paginate gem in my ROR project to show the records in pages. I want the next page to be loaded without reloading the whole page using ajax. I found some examples on the net but th...
Tussis asked 29/11, 2012 at 10:42

7

Solved

I was wondering if someone could explain how to use will_paginate on an array of objects? For example, on my site I have an opinion section where users can rate the opinions. Here's a method I wro...
Bearwood asked 4/12, 2010 at 9:40

3

Solved

I'm trying to use will paginate with ajax, but I don't show the will_paginate buttons... instead I use a see more button, that makes an Ajax request and append the results to the page. what I'm try...
Belemnite asked 22/5, 2012 at 9:37

5

Solved

I have an array @level1 which looks like this : [[3.0, 4, 2], [2.0, 48, 3], [2.1, 56, 4], ............] I want to apply pagination on this array such each page displays only a few rows at once. ...
Erelong asked 1/11, 2012 at 23:29

2

Solved

THIS IS THE SOLUTION So i'm using will_paginate / Bootstrap Will Paginate with Endless Scrolling. To get the Pagination working: 1.) In my Controller i updated my index action with @clips = Cli...

8

Solved

I have used will_paginate gem for paginating index page of my test_app. It just shows the auctions listed and corresponding to each auction there is Edit, Destroy functionalities. My pagination is ...
Eriha asked 28/12, 2012 at 4:25

5

Solved

I have installed the will_paginate-bootstrap gem to use bootstrap style pagination. I have this in my view: <%= will_paginate @mylist, renderer: BootstrapPagination::Rails %> but it ret...

3

Solved

I followed the tutorial here http://railsforbeginners.com/chapters/chapter-9-infinite-scroll/ for an infinite scrolling. The code works good locally but when I deploy it to prod. the pagination lin...
Unrivaled asked 15/10, 2016 at 1:41

1

Solved

I am using ransack for search and now I want to implement pagination in my rails app. So I am using the will_paginate gem. The issue am facing is that I cant figure out how to put the paginate in m...
Rosenthal asked 21/12, 2015 at 12:11

3

After quite a bit of searching, I'm still a bit lost. There are a few other similar questions out there that deal with paginating multiple models, but they are either unanswered or they pagainate e...

3

Solved

In my Rails application I want to use the will_paginate gem to paginate on my SQL query. Is that possible? I tried doing something like this but it didn't work: @users = User.find_by_sql(" SELECT...
Robbery asked 29/3, 2010 at 4:56

1

Solved

I have seen something similar asked before, but I can not understand it, and I can not ask for help there because of low reputation to comment. So, I am asking a new question. I am using will_pagi...
Arlberg asked 12/5, 2015 at 0:0

2

I am using will_paginate "2.3.15" for my rails app in my units_controller.rb def index @units = Unit.paginate(:all ,:page => params[:page], :order => 'created_at DESC') end in my views(in...
Cleodal asked 15/6, 2011 at 10:6

1

Solved

When I pass will_paginate an ActiveRelation, it always calls its #count method and hits the database to find out the total number of items. But this operation takes time and I have the total number...
Bandstand asked 2/11, 2014 at 6:40

1

Solved

I added ActiveAdmin to my app, updated some gems and now I get a undefined method `link_to_function' when viewing users show page. I have the will_paginate gem and I added a initializer so there's ...
Orlon asked 7/10, 2014 at 13:21

3

Solved

I understand Kaminari perform well with Rails3 reading this article: Rails 3 pagination, will_paginate vs. Kaminari, but how about with Rails4? Also, when stylizing them with Bootstrap3, which gem ...

1

Solved

What is the method in kaminari to know if next page exists? With will_paginate its simple you just call in next_page? on model. I wonder if there is anything in kaminari
Lipfert asked 13/8, 2014 at 3:16

1

Solved

An existing array vparray is being generated, then sorted by a non-db column rate. It then needs to be paginated : @vps = vparray.sort_by{|e| e.rate} @vps = WillPaginate::Collection.create(1, 10...
Spurrier asked 26/5, 2014 at 17:27

3

Solved

This is my pagination, I want to limit the number of pages to 10, for example, to don't have the same problem as in the picture. How can I do it using will_paginate gem?
Airsick asked 7/5, 2014 at 19:20

© 2022 - 2024 — McMap. All rights reserved.