The will_paginate library makes adding pagination functionality to Rails apps (and other Ruby frameworks) a breeze. Recently I have been working on an app using Twitter’s Bootstrap styling framework, and had a need for some pagination. I dropped the method for the page links into a .pagination div and saw this:


That was decidedly not what I was looking for, so I reached out to Google and found Isaac Bowen’s solution, which worked exactly as advertised:


As I’ve already found this solution useful in at least two different projects, I decided to wire it all up into a Rails engine and release it as a gem. Just add bootstrap-will_paginate to your Rails project’s Gemfile and you’re ready to go.