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 specify data-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'.
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: trueoption. 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'.