matenia / bootstrap-kaminari-views

MIT License
151 stars 29 forks source link

Doesn't work at all #19

Closed jedrekdomanski closed 6 years ago

jedrekdomanski commented 6 years ago

After installing the gems and applying :theme => 'twitter-bootstrap-3' it appears styled but after you click another page it reverts back to non-styled. Steps to reproduce: install gems and apply the theme, refresh the page, the pagination style has changed, click on 2nd page and the style will disappear. I use <%= paginate @posts, remote: true %>

goreilly commented 6 years ago

did you put this in the application helper? It's working for me

module ApplicationHelper

  # ...

  # Default pagination controls to use bootstrap theme
  def paginate(objects, options = {})
    options.reverse_merge!(theme: 'twitter-bootstrap-3')
    super(objects, options)
  end

end

If not you have to pass :theme => 'twitter-bootstrap-3' with each call to paginate

jedrekdomanski commented 6 years ago

I decided to style everything myself in css.