uninitialized constant ActionView::CompiledTemplates::BootstrapPagination

Sayed Jalil Hassan picture Sayed Jalil Hassan · Jan 10, 2014 · Viewed 11.8k times · Source

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

Answer

Sabyasachi Ghosh picture Sabyasachi Ghosh · Jan 10, 2014

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.