Stack Exchange
Stack Overflow
  • Questions
  • Tags
  • Users
  • About
Stack Overflow
    1. Public
    2. Questions
    3. Tags
    4. Users
    5. About

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

  • Source code
  • Wiki
  • Recipes
572 questions
0
votes
1 answer

Ordering with ActiveRecord, pagination with Kaminari

The following (from the index-action of my activities-controller) has no effect on the order in which the entries are displayed: @activities = Activity.order("updated_at").page(params[:page]) The .page-part is for the Kaminari-gem that does the…
ruby-on-rails activerecord kaminari
asked Apr 25 '12 at 08:14
The_Fritz
  • 452
  • 3
  • 17
0
votes
1 answer

Paginating a solr response using kaminari?

Does kaminari support pagination of a solr response ? If yes, how to convert the response to a kaminari-compatible format ?
ruby-on-rails pagination kaminari
asked Apr 25 '12 at 07:32
PravBys
  • 1
0
votes
1 answer

Rails 3 - Pagination with Kaminari - Show action of one controller, to browse records of another

My current setup is that a discussion has many posts. Thus, the show action of discussions shows a list of posts. discussions/show.html.erb: <% for post in @discussion.posts %>
…
ruby-on-rails ruby-on-rails-3 controller pagination kaminari
asked Apr 24 '12 at 20:59
Kobius
  • 674
  • 7
  • 28
0
votes
2 answers

Fetch objects upon pagination, rather than beforehand? (Rails + Kaminari)

So I have a search controller that returns a array of Object IDs (in this case 'Users'). Since the search results array can contain hundreds of IDs, I'd rather fetch the actual Objects themselves only when I need to send them to the view. In short,…
ruby-on-rails pagination kaminari
asked Apr 12 '12 at 15:04
thoughtpunch
  • 1,907
  • 4
  • 25
  • 41
0
votes
2 answers

Pagination of search form results returns nothing for subsequent pages (Kaminari + Rails)

So I have a search form that returns a Kaminari paginated array. The first page always returns a list of results, however the "GET" of all subsequent page links returns no results and I'm not sure why! Here are my search methods in my controller def…
ruby-on-rails pagination kaminari
asked Apr 11 '12 at 16:55
thoughtpunch
  • 1,907
  • 4
  • 25
  • 41
0
votes
1 answer

Ruby on Rails pagination using Kaminari gem for array of objects

Am trying to do filtering part. Filtering means, when user selects some choices based on that product details will be displayed. If user selects women (department) and men department it should display all the products which belongs to both women and…
ruby-on-rails-3 activerecord pagination kaminari
asked Apr 11 '12 at 08:09
web spider26
  • 252
  • 4
  • 16
0
votes
1 answer

Paginate child models Kaminari on rails 3.1

I have 2 models images and categories. The relations are: - a image belongs to one category. - a category has many images. On the index.html.erb view from categories object, I want paginate 20 images per page for all categories. I mean, I want…
ruby-on-rails ruby-on-rails-3 pagination kaminari
asked Apr 05 '12 at 17:22
hyperrjas
  • 10,666
  • 25
  • 99
  • 198
0
votes
0 answers

Can we use kaminari gem for pagination functionality in render (partial) view

Is it possible to use Kaminari Pagination in render (partial) view. If it is possible to do please tell me how to do.
ruby-on-rails-3 pagination render renderpartial kaminari
asked Apr 04 '12 at 05:03
web spider26
  • 252
  • 4
  • 16
-1
votes
1 answer

Params :pagination not found! (RuntimeError) grape rails

I have face this issue when I was implementing pagination using grape kaminari gem to show a list.
pagination kaminari grape-api
asked Mar 17 '21 at 04:11
Learner
  • 1
-1
votes
1 answer

How to paginate custom resources with kaminari helpers?

I have some custom resources queried over a rest API. I would like to make use of kaminari's pagination view helpers (e.g. page links). I understand kaminari can paginate array-like resources when they are all available, however, my resources are…
ruby-on-rails ruby kaminari
asked Nov 28 '19 at 16:22
thisismydesign
  • 21,553
  • 9
  • 123
  • 126
-1
votes
1 answer

Test if kaminari params exist using ruby on rails

I'm new to Ruby, and my task is to add pagination for the get method, but I try to test if the params (page) and(per_page) exist, if they dont exist it should return all the data in the database, because by defaulkt kaminari return only the 25…
ruby kaminari
asked Oct 09 '18 at 09:17
K.K.H
  • 5
  • 6
-1
votes
1 answer

Kaminari syntax error, unexpected '='

I am using Kaminari paginator and I got this error. I followed the instructions here! SyntaxError (../ruby/2.3.0/gems/kaminari-0.17.0/app/views/kaminari/_paginator.html.erb:1: syntax error, unexpected '=' ...buffer = @output_buffer;class = class =…
ruby-on-rails ruby kaminari
asked Nov 14 '16 at 10:46
Drin
  • 67
  • 1
  • 4
-1
votes
1 answer

Stop Rails Anchor param getting encoded

While using Kaminari gem in rails, I got to add an anchor value inorder to load the tabs correctly. But rails encoding the "#" symbol, which preventing the page from rendering correctly. Is there any chance to prevent this from happening. sample…
ruby-on-rails anchor urlencode kaminari urldecode
asked Sep 26 '16 at 10:45
Prasanna Chowdary
  • 1
  • 1
-1
votes
3 answers

Regex for gsub in rails

I have a rails application where I am using kaminari for pagination. Somehow kaminari is using wrong url for hyperlinks. Right now I am looking for an easy fix which requires some regex & gsubbing. I have this url from kaminari:…
ruby-on-rails regex kaminari
asked Sep 07 '16 at 13:00
RamanSM
  • 275
  • 3
  • 13
-1
votes
1 answer

ActiveAdmin pagination not working with Ruby 2.3.1

This is the link generated by the pagination (i.e. page 2):…
ruby-on-rails ruby pagination activeadmin kaminari
asked Jun 02 '16 at 15:52
Martin B.
  • 760
  • 2
  • 8
  • 21
Prev 1 2 3
…
38
39 Next