Very simple pagination set up giving me the following error: NoMethodError in Projects#index Showing /users/MasterControl/div/ikon/app/views/projects/index.html.erb where line #32 raised:
I\'m running some rspec unit tests involving getting data back through kaminari paging, but the default page size for our application is 20, whereas 2 would work fine for test.
I am using the kaminari pagination gem in my simple Rails 3.1 application. Problem is it creates too many pages, I end up with completly blank pages at the end of my page list.
So I\'m converting my Admin mailers to use Resque and execute in the background. When I ran: rake resque:work QUEUE=\'*\' --trace
I\'开发者_运维知识库ve set up Kaminari so that it can accurately paginate by post title if i do this:
I want to paginate posts by month so I added following scope in Post model class Post include Mongoid::Document
The problem with your typical rails pagination gem is that it does 2 queries: one for the page you\'re on and one for the total count. When you don\'t care about how many pages there are (e.g. in an e
I\'m trying to use Kaminari开发者_开发百科 to paginate a model. However, I\'m using scope in my model which throws some error.
Is this doable? I have the following scope: class Thing < ActiveRecord::Base scope :with_tag, lambda{ |tag| joins(:tags).where(\'tags.name = ?\', tag.name)
I\'m not sure what I did, but kaminari has started acting weird in my app. In my controller: @producers = Producer.order(:name).page(params[:page])