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

Mongoid, Kaminari: How can I show a specific number of embedded documents per page

I would like to create a page with rails to show the embedded documents of multiple documents. The problem is that the number of embedded documents per document is variable. I have multiple posts and each post can have up to 5 images. The image is…
roemchine
  • 11
  • 2
0
votes
2 answers

rails endless scroll with kaminari, event not triggering

Fallowed the endless scrolling tutorial by Ryan Bates, and don't understand why it's not working ;/ partial does not update localfeeds/show.html.erb
0
votes
1 answer

Rails kaminari infinite scroll : 7 get requests to load 1 page

I am new with kaminari (ruby) and I just implemented the kaminari infinite scroll. I followed the tutorial step by step and I noticed that the JQuery makes 7 get requests to load one page whitch is a lot. I think it's a bug. How can we lower this to…
Nobigie
  • 203
  • 1
  • 3
  • 10
0
votes
2 answers

Rspec controller test fails after using kaminari for pagination

My controller tests using rspec fails while using kaminari for pagination.My Controller code & rspec test are as given below. app/controllers/courses_controller.rb def index @courses = Course.all.page(params[:page]).per(15) authorize! :read,…
Nithyanand K N
  • 45
  • 2
  • 10
0
votes
2 answers

Rails - Using Kaminari for pagination?

I'm trying to get the next page link. How would I do this? I get the following error when calling link_to_next_page undefined method `link_to_next_page' query = Posts.page(1).per(5).includes(author: :profile) link = link_to_next_page(query,…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
0
votes
1 answer

Paginate entries by arbitrary cycle in Rails

I have a model: entry (created_at: datetime, temperature: float, melt_type: string) I need to paginate entries by cycle (rather than a set number of entries). A cycle is defined by the first entry with any melt_type value to the last entry before…
0
votes
1 answer

How to open a specific page records in kaminari using ajax pagination with browser back button?

I have used kaminari for pagination. I have used ajax pagination The pagination looses the page number and show all records from first page . let say we have 5 pages and we moved to 3rd page and clicked one post and on back. Then how can we supposed…
Debadatt
  • 5,935
  • 4
  • 27
  • 40
0
votes
1 answer

Rails 4: Kaminari - Displaying duplicates

I am using Kaminari with AJAX in my Rails 4 application. I've so far been able to display a different number of records for the first page (13), but then AJAX in 14 records for every page after that. This works more or less perfectly. However, as…
div
  • 187
  • 5
  • 12
0
votes
2 answers

show all page options without gap in kaminari pagination

I am trying to get all page options to show without ellipsis "gap" like this: 1 2 3 4 5 6 ... 12 and more like this 1 2 3 4 5 6 7 8 9 10 11 12 regardless of the number of pages. I've fussed with the kaminari views to no end and I don't see…
bonum_cete
  • 4,730
  • 6
  • 32
  • 56
0
votes
2 answers

Kaminari Issues in Rails 3.2

How do I get this page to paginate using kaminari? I need help with this badly. I don't know what to do. Just get me some way so that all the posts will only be 15 per page. I want the show page to be paginated not the index page. This is the…
0
votes
1 answer

Kaminari error when collection is smaller than per(x)

I am running the Kaminari gem for my pagination. Controller def dashboard @projects = Project.find_by_user_id(current_user) if @projects.size > 10 @projects.page(params[:page]).per(10) end end Dashboard view = paginate @projects, :theme…
Jay Killeen
  • 2,832
  • 6
  • 39
  • 66
0
votes
1 answer

Infinite Scroll with Kaminari doesn't do anything

Using https://github.com/amatsuda/kaminari/wiki/How-To%3a-Create-Infinite-Scrolling-with-jQuery as a guide I have tailored the code according to my specific case but nothing happens or changes in my app. The pagination with kaminari works just fine…
heartmo
  • 582
  • 2
  • 6
  • 23
0
votes
1 answer

How to create a view_all_page using Kaminari Pagination

I am trying to create a view_all_page using Kaminari. I have successfully installed the gem kaminariand using the kaminari THEME in twitter bootstrap. I would like to create a view_all_page.html.erb to add to my app/views/kaminari theme. …
0
votes
1 answer

Special characters in YAML

In a css.sass file, I have an arrow character that is displayed through an li: .fi-arrow-right:before content: "\f10b" I need to get this same image into a YML config file to change the way kaminari buttons look. How would I represent this…
NoobException
  • 616
  • 9
  • 20
0
votes
1 answer

kaminari pagination ajax call renders to wrong controller

First we start off with conversations/index.html.haml to create a message #new_message_conversation .panel.panel-info .panel-heading %h4 Send a Bark! .panel-footer(style="padding-top:…
monty_lennie
  • 2,871
  • 2
  • 29
  • 49