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

Algolia-rails pagination with kaminari

I am attempting to integrate my website(runs with RoR) with algolia search service. can anyone help me how to paginate results(hits) with kaminari gem? Thanks in advance.
Vishnu S
  • 13
  • 3
0
votes
0 answers

render :layout => 'application' conflicts with kaminari

I am trying to make kaminari ajax button work, but I have one problem which seems to be causing error and stopping from kaminari to work. index.controller.rb def index @works = Work.page params[:page].per(10) respond_to do |format| …
Hirohito Yamada
  • 387
  • 1
  • 4
  • 17
0
votes
0 answers

kaminari AJAX load more button won't work

I've noticed how Akira Matsuda have added helper in Kaminari gem and made ti a lot simple for us to use Load more button. I've read the document and figured simply adding <%= link_to_next_page @items, 'Next Page' %> should make the ajax load button…
Hirohito Yamada
  • 387
  • 1
  • 4
  • 17
0
votes
2 answers

Kaminari three dots after pagination buttons

Got my Kaminari working (after some setbacks) and I finally have my pagination done. After I tested it, I realized there where three dots being displayed after the last-page-arrow (error picture). I believe there's nothing weird with my kaminari…
0
votes
2 answers

How to use pagination in rails 4.2.5 and also have the ability to reorder the list with ajax?

I'm working on an forum-type app in Rails v 4.2.5. My index page is a list of all the questions being discussed in the application and they are default sorted by the created_at date. I am also using the Kaminari gem to paginate all of the questions…
0
votes
0 answers

endless scrolling using kaminari in rails

I am trying to achieve unlimited scrolling in my rails app using kaminari. Its working as expected but if I move the scrollbar up and down several times its loading again and again until I stop scrolling. Here is my pagination.js.coffee $ -> …
Abhilash
  • 2,864
  • 3
  • 33
  • 67
0
votes
1 answer

kaminari ActionView::Template::Error (arguments passed to url_for can't be handled

I am suffering this error with kaminari, and after try a lot of different 'solutions' none of them works. kaminari is working in local environment. I read solutions in Stackoverflow and in others websites but not successfully. The error in the…
vikngo
  • 11
  • 3
0
votes
1 answer

Jump to page using Kaminari Gem

I am trying to add pagination after a item from a paginated list is linked to. I can't seem to find a way to do this or find the answer. I am trying to display a list of images on a page, what I am trying to do is, when an image is clicked the user…
teddybear
  • 546
  • 2
  • 6
  • 14
0
votes
0 answers

How to display images using Ruby paginate library

I am using kaminari library, and I want to display users' pictures. In my UserController, I put def index @users = User.order(:name).page params[:page] end Before, I was accessing the pictures like #users.transitions-enabled - @users.each do…
user2857014
  • 507
  • 3
  • 10
  • 22
0
votes
1 answer

Paginated array would not show

I'm rather new to Ruby on Rails so would appreciate some help Roles have Users in my application. When showing a role I would like to render a paginated list of user names (and as a further refactor - links to users). Currently my HAML template is…
Pavel Murnikov
  • 53
  • 1
  • 10
0
votes
2 answers

How to order records by associaction with has_many

I have two tables, authors and books, books have a publishing date, I would like to order authors by the date of their last published book, I was doing this includes(:books).where(blablabla).order('books.published_date DESC') but it breaks…
JohnGood
  • 15
  • 4
0
votes
1 answer

Kaminari not displaying links on Rails 4

I just finished the default example project from Rails which is a blog, I decided to do a pagination with Kaminari. I'm using Rails 4.2.5 and kaminari 0.16.3. and when I try to paginate the index page where posts are displayed kaminari paginates the…
0
votes
1 answer

jQuery Infinite Scroll with Twitter BootStrap Modal

I need to display records in a Twitter BootStrap Modal. I also need to implement infininte-scrolling so that when user scrolls to bottom of the modal, it fetches more records. I created a demo based on How To: Create Infinite Scrolling with jQuery…
Amit Patel
  • 15,609
  • 18
  • 68
  • 106
0
votes
1 answer

Kaminari inside bootstrap modal with Rails

I want to create infinite scroll inside twitter bootstrap using kaminari. From what I understand, Kaminari takes a collection of objects (in my case images), and splits them over separate pages. I am creating the infinite scroll by rendering the…
Ben
  • 2,957
  • 2
  • 27
  • 55
0
votes
1 answer

undefined method `last_page? in link_to_next_page

I m using kaminari gem In my events_controller def show ... @comments = @event.comments.page(params[:page]).limit(5) respond_to do |format| format.js format.html end end in my events/show.html.haml .row .load-more = render…
Adt
  • 495
  • 6
  • 19