bootstrap-ruby / will_paginate-bootstrap

Integrates the Twitter Bootstrap pagination component with will_paginate
MIT License
388 stars 160 forks source link

Fixes ActionView::Template::Error: uninitialized constant ActionView::CompiledTemplates::BootstrapPagination #44

Closed RubenHoms closed 8 years ago

RubenHoms commented 8 years ago

During development I noticed that in newer Ruby versions (I'm running ruby 2.2.3p173) I was getting the following error when using will_paginate-bootstrap: ActionView::Template::Error: uninitialized constant ActionView::CompiledTemplates::BootstrapPagination

After some debugging I found out that the include didn't seem to work properly when loading the Rails version of the gem. I fixed this by implicitly defining which BootstrapRenderer to include.

nickpad commented 8 years ago

Thanks! :+1: