-
Notifications
You must be signed in to change notification settings - Fork 237
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
Broken kaminari pagination after upgrade to cells 4 #381
Comments
Please update |
@apotonick , I'm using Rails 5.1 , kaminari-cells (last version), cells (last version) and getting a similar error
|
Have the same errors here, can't seem to get pagination working in cells anymore |
@niek95 , I've solved by forking kaminari-cells and updating kaminari version. You can check it here: |
Do you copy the kaminari views and change the config as well? I still get an error that it can't find the template view: _paginator.html.haml, even though it is finding the correct version of kaminari-cells |
Nevermind, it was a problem with Haml, solved by generating the views. Thanks for your help! |
@niek95 , probably it's this error: https://stackoverflow.com/questions/35188101/kaminaricells-paginate-method-not-rendering-anything#35188102 Sorry, I'd forgot to mention that. |
Thanks for your help! |
I started to upgrade cells from 3.11.2 to 4.0.4 basing on https://github.com/apotonick/cells/wiki/From-Cells-3-to-Cells-4---Upgrading-Guide (I also added
cells-slim
gem since my views are in slim). So I have such cell now:app/cells/permissions_cell.rb
And I have cell view:
app/cells/views/permissions/list.slim
I also had such fix:
config/initializers/kaminari_config.rb
But after upgrade
= paginate @users
causes NoMethodError - undefined method 'paginate' for #PermissionsCell:0x007ffe8d604b20 error when I try to open my page with users (as I mentioned earlier I didn't have such error before the upgrade). Here is my error trace:I tried couple things to fix that but I didn't have any lack
My attempt to fix via kaminari-cells gem
I tried to fix the problem by adding gem
kaminari-cells
to my Gemfile. After that I removed this:config/initializers/kaminari_config.rb
And also I added to my cell that line:
app/cells/permissions_cell.rb
but that caused another weird error - NameError - uninitialized constant Cell::Rails:
My attempt to fix my using code from kaminari-cells gem
I also tried to copy and use code from
kaminari-cells
:app/cells/permissions_cell.rb
which caused another error - Cell::TemplateMissingError - Template missing: view:to_s.slimprefixes: ["app/cells/permissions"]
Please can somebody help with fixing that?
The text was updated successfully, but these errors were encountered: