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

Rails redirect to record page on pagination with kaminari after creation

In one of my Index page I have kaminari pagination. On the same page i can also handle a create action by form_with. The new record is saving on place according to name so it could be in the middle of pagination. The question is - can i redirect to…
dkruchala
  • 23
  • 1
  • 8
0
votes
1 answer

Undefined method `paginate' for ShopifyAPI::Product:Class

I'm creating a web based rails application. Can't find what causes the problem as mentioned above. I have gem 'shopify-kaminari', '~> 1.1' I checked in rails console: Kaminari::Helpers::HelperMethods.instance_methods => [:paginate,…
aldrien.h
  • 3,437
  • 2
  • 30
  • 52
0
votes
1 answer

Kaminari/Ransack - Sort and Pagination issue

I'm using Ransack, Kaminari and Postgres to perform queries/pagination inside my Rails controllers, and I have the following code: ransack = current_user.condition? ? @company.contacts.ransack(params[:q])…
felipeecst
  • 1,355
  • 3
  • 16
  • 32
0
votes
1 answer

Receiving NoMethodError in Follows#followers when paginate_array is empty in view

I'm currently trying to list all users that the current user is following/being followed by. I managed to get some functionality working by wrapping the current_user.all_following method in a Kaminari.paginate_array function. Which is for…
Johnny C
  • 121
  • 1
  • 1
  • 11
0
votes
1 answer

Kaminari - undefined local variable or method `page' for

I was using will_paginate for pagination on my site but as we're using Active Admin I decided to change it to kaminari to avoid any of the conflict issues between the two. I removed will_paginate from the gem file and added kaminari, restarted the…
asha
  • 26
  • 5
0
votes
0 answers

Undefined method 'paginate' with kaminari

When I attempt to include <%= paginate @coins %> in the view like this,

All Coins

    <% @coins = @coins.sort_by &:currency_name %> <%= paginate @coins %> <% @coins.each do |coin| %> …
mattC
  • 363
  • 2
  • 17
0
votes
1 answer

Kaminari pager not working with Sinatra and Mongoid?

Can't get Kaminari to work with Sinatra and Mongoid. I'm getting this error: NoMethodError at /api/events undefined method `page' for # Here is minimal code to get the error: Gemfile source…
allanberry
  • 7,325
  • 6
  • 42
  • 71
0
votes
1 answer

Upgrade kaminari to 1.0.1 using rails admin and active_support

I want to update my dependencies, it works if I specify the kaminari version to be 0.17.0 But now with this version of kaminari i can't make rails_admin work anymore, see here the error I got => https://github.com/sferik/rails_admin/issues/2939 When…
BastienSander
  • 1,718
  • 4
  • 24
  • 50
0
votes
1 answer

Select checkbox pass array in ruby on rails using kaminari pagination

I have my view where I am showing all the records and I need to add a checkbox for multiple selection, I am doing it in the following way: <%= form_tag("/user_selection", method: 'get', remote: true, class: "form-horizontal" ) do %>