yrgoldteeth / bootstrap-will_paginate

Format will_paginate html to match Twitter Bootstrap styling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to error

michaelmafort opened this issue · comments

You how to configure the plugin has the error on :renderer => WillPaginate::ActionView::LinkRenderer

As Rails 3 and will_paginate 3.0.4 the correct syntax is:
WillPaginate::ActionView::BootstrapLinkRenderer

Thanks for your plugin.

I think I have the same issue to point out: the README doesn't adequately explain how to use the bootstrap pagination. I had to dig through the code in order to find out that I need to change my will_paginate call to "<%= will_paginate(@things, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer) %>".

I'm not sure if this is just an oversight with some new versions or something, but this is a neat little gem that people might overlook because it does not explain its use!

@michaelmafort I need to make that clearer. Those instructions are for the event when someone is using bootstrap-will_paginate but needs to not use the bootstrap renderer. By default, using bootstrap-will_paginate should just use the BootstrapLinkRenderer. I will have to check on why it may not be doing that anymore.