-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with mongoid 5.0.1 #748
Comments
@NekroMancer could you provide a minimal example of code that replicates the bug? |
I have model News like: class News
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Slug
mount_uploader :image, NewsImageUploader
paginates_per 10
field :title, type: String
field :content, type: String
field :image, type: String
slug :title
belongs_to :user
end Any simple controller that uses paging like: def news
@news = News.order_by(created_at: 'desc').page params[:page]
end When i comment out |
@NekroMancer I'm sorry, but what I meant by example was an single runnable ruby script that raises the exception you are seeing in your app. You can also write a test case that fails. Either way, we won't be able to fix it until you provide something we can run on our machine that replicates the error. |
Try against HEAD please, Mongoid 5.x support has not been released in Kaminari, see #747 |
@NekroMancer I see you have Mongoid::Slug in there, upgrade to 5.1.1, see mongoid/mongoid-slug#197 and mongoid/mongoid-slug#198 |
I tried to install from HEAD, but:
|
@NekroMancer |
Well, i have no idea what.. It's simple setup on mac |
I'm not sure if this is a kaminari issue. I'll close this issue unless someone can provide a minimal example that can replicate the issue. Thanks! |
Hello, I have been using kaminari with 0.16.3 with mongoid 4.0.2 and ruby ruby 2.1.4p265 with no issues. Currently I am upgrading my ruby to 2.2.0 and corresnpondingly upgraded mongoid to 5.1.6, kaminari to 1.0.0. Suddenly I am getting errors like |
@ashokap The mongoid parts were extracted into https://github.com/kaminari/kaminari-mongoid. |
Thanks :) Working fine now. Didn't go through the entire github readme file earlier. |
@dblock Thanks! @ashokap Like @dblock said, we've split up the gem into small pieces. For more details, please have a look at 5 Major Changes in Kaminari 1.0.0. Thanks! |
Every time i want to use paginate i get error:
Even on simple code like this:
The text was updated successfully, but these errors were encountered: