Questions tagged [kaminari]

A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Rails 3

A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Rails 3

572 questions
0
votes
1 answer

Kaminari not limiting collection in Spree

For some reason Kaminari is not limiting child objects on the parent show view. Can see the pagination links but the collection does not get limited. What am I doing wrong? View - <% if @handbag.microposts.any? %>

Posts (<%=…

AndrewJL
  • 128
  • 2
  • 12
0
votes
1 answer

undefined method `paginate' for # in sunspot rails with Kaminari

My controller code is @search = Sunspot.search(Product) do fulltext params[:search] paginate(page: params[:page], per_page: 1) end @search_products = @search.results It gives me an error undefined method `paginate' for For pagination I…
Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133
0
votes
1 answer

undefined local variable or method `params' for products controller

I am trying to paginate using kaminari on my rails app. On the first page i want to show 11 products and in all other pages i want to show 12 products. I followed the instructions on this post but get the following error: undefined local variable or…
Chinsky
  • 55
  • 9
0
votes
2 answers

Shoppe and kaminari - undefined method `entry_name' for # for @orders

I've been working with the shoppe gem, and I'm currently completely stumped by an error I'm getting when I'm opening up the orders page of the admin panel. I'm using version 1.0.7 because product variants broke on the subsequent ones. Everything was…
0
votes
0 answers

Kaminari and PG::UndefinedFunction: ERROR: could not identify an equality operator for type point

I have two models: Country and Resort. Resort has field point with type "point". Model Country has_many Resorts. When i get countries resorts with kaminari( .page(params[:page]).per(20) ) i have an error: PG::UndefinedFunction: ERROR: could not…
KriM
  • 1
  • 1
0
votes
2 answers

Rails not updating page via AJAX

I'm having a weird problem with Kaminari, AJAX pagination and the latest rails. I see everything is working perfectly underneath, it's doing the right calls, generating the right HTML and JS, but for reasons I don't understand it doesn't update the…
ngw
  • 1,222
  • 1
  • 14
  • 34
0
votes
1 answer

Kaminari paginate at different controller mixing with devise (check answer)

I have 2 non nested models, User and Record. The goal is to paginate the @user.records called @records at users/show Here is the Record part: at app/models/record.rb class Record < ActiveRecord::Base default_scope lambda {…
Dieglock
  • 169
  • 1
  • 16
0
votes
1 answer

Kaminari - can't get dynamically selected per page limit

Here is my code. Controller: def bisac_main_counts q = " MATCH (b:Bisac) WHERE (b.bisac_code =~ '.*000000') WITH b, size((b)<-[:INCLUDED_IN]-()) as wokas_count RETURN b.bisac_code as bisac_code, b.bisac_value as bisac_value, wokas_count …
LDB
  • 692
  • 6
  • 18
0
votes
1 answer

Neo4j - pagination with kaminari - stack level too deep

I have many authors (as nodes) authoring multiple Work of Arts (wokas), also as nodes. I want to fetch the authors on page 100, 5 authors per page. For the first author from those five selected I want to know the first work of art authored. Here is…
LDB
  • 692
  • 6
  • 18
0
votes
1 answer

kaminari pagination shows previous results at next page

Pagination for Google map or many apis have "next_token" not to show previous contents. However Kaminari shows previous contents if new contents are created and then go to next page. Please let me know how to generate like next_token with Kaminari…
Horyun Lee
  • 1,083
  • 8
  • 9
0
votes
0 answers

Paginating posts in a topic with Kaminari

I'm having trouble paginating a topic's posts with Kaminari. The paginator partial shows up and seems to be calculating the number of pages it should have correctly, but all of the topic's posts are displayed on each page instead of the 2 posts I'm…
Kalyn
  • 23
  • 3
0
votes
1 answer

Rails 4: I18n::InvalidLocaleData

I installed the Kaminari gem and followed the instructions. I customized my theme to the foundations but when trying to further customize the pagination style using the en.yml file, I run into this error: I18n::InvalidLocaleData in…
shroy
  • 918
  • 2
  • 10
  • 24
0
votes
1 answer

Kaminari Ajax paginate doesn't work

I have below view and controller. Though remote: true is mentioned, kaminari calls my method using http(using page refresh). Is there anything i am missing to make my kaminari links ajaxable. In VIEWS:
<%= paginate @user,…
Rahul Dess
  • 2,397
  • 2
  • 21
  • 42
0
votes
1 answer

How should I enable paging in ransack results submitted via a POST

I am using Ransack to create a simple search form that will grow more complicated soon. Because I don't want to overflow the querystring, I am using POST to submit my search form. This works fine but now I want to add paging. Looking at Kaminari, it…
Eric
  • 5,815
  • 3
  • 25
  • 34
0
votes
1 answer

Kaminari gem not working with Leaderboard gem

I have been following this tutorial to get the leaderboard gem working and I've got all of the leaderboard gem aspect of it working, but I am struggling to get the Kaminari gem part of it working (the paginate gem). At the moment in my controller I…
camillavk
  • 521
  • 5
  • 20