Questions tagged [will-paginate]

Ruby pagination library

A pagination library for Ruby that integrates with popular web frameworks and database drivers. See the will_paginate documentation.

859 questions
-2
votes
1 answer

How to show pagination counter for array for pagination in views

used_cars = UsedCar.paginate(:page => params[:page], :per_page => 5) used_cars_hash = used_cars.as_json I show all used_cars_hash in my view. But when I add <% will_paginate @user_cars_hash %> it gives an error How to show pagination counter on…
Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133
-2
votes
2 answers

Combine search and will_paginate

User can do a quick search for a specific record in a database. I also added a will paginate, but when I did, the search bar didn't work. How can I fix this? my controller class VendorsController < ApplicationController def index …
bockdavidson
  • 2,083
  • 3
  • 14
  • 21
-4
votes
1 answer

How to implement pagination for Ruby hash

I need to implement pagination for the following hash. I need to show the rooms floor wise with pagination. Hash = { floor_1 : [101,102,103], floor_2: [201,203,204], floor_3: [301,302,303] } Is there any idea on how to do that? I am using will…
-4
votes
1 answer

Your application server raised an error - It has been raised in your test code because Capybara.raise_server_errors == true

Not sure what should I do about this: Failure/Error: <%= will_paginate ads %> ActionView::Template::Error: Your application server raised an error - It has been raised in your test code because Capybara.raise_server_errors == true using…
user7010020
1 2 3
57
58