-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 kaminari theme #2283
Comments
Putting |
So which gem is to blame here - who has to fix this? |
I wouldn't say that either gem is to blame. It's simply a conflict between the two and technically either gem could fix it. Though, as I mentioned above I think it makes most sense that If the maintainer(s) of rails_admin agree, perhaps one of us can submit a PR. |
@benjaminwood Sure, namespacing bootstrap-kaminari-views to ra-bootstrap-kaminari-views would make sense, no pb. |
Cool, PR submitted ☝️ |
merged! |
This is due to a change in RailsAdmin described here railsadminteam/rails_admin#2283 Fixes #14
I ran into an interesting problem today which is that I'm working on a project which uses both rails_admin & this gem: https://github.com/matenia/bootstrap-kaminari-views
The problem is that both have kaminari themes at this path:
views/kaminari/twitter-bootstrap
. So, when I'm using Kaminari in some non rails_admin view and specify the theme like this:= paginate @resource, remote: true, :theme => 'twitter-bootstrap'
I end up with rails_admin kaminari theme instead of the other gem referenced above. The main issue with this is in regards to the
remote: true
option. When this option is passed, rails_admin adds a 'pjax' class and does not specifydata-remote=true
(standard rails/what I need).My temp solution was to simply copy the bootstrap-kaminari-views theme into my app /views directory and title it something else.
Possible solution: change rails_admin kaminari theme name to something more specific like 'rails-admin-twitter-bootstrap'.
The text was updated successfully, but these errors were encountered: