uninitialized constant ActionView::CompiledTemplates::BootstrapPagination

ruby-on-rails, ruby-on-rails-4, twitter-bootstrap, will-paginate

Solution

If you have successfully bundle all the gems then it should work like this.

<%= will_paginate @mylist, :renderer => BootstrapPagination::Rails %>

Please make sure you have restarted the server after installing the gem.

Problem

I have installed the will_paginate-bootstrap gem to use bootstrap style pagination. I have this in my view: ``` <%= will_paginate @mylist, renderer: BootstrapPagination::Rails %> ``` but it returns this error ``` uninitialized constant ActionView::CompiledTemplates::BootstrapPagination ```

Original source