Skip to content

Problem with kaminari theme #2283

@benjaminwood

Description

@benjaminwood

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions