incubate!(bang) has officially started back up - check incubatebang.com for details

isotope|eleven


About_nick_fine

Nick Fine

developer

Nick spent the better part of a decade working in systems and networking support until discovering that developing software, particularly in Ruby, was a much more entertaining and satisfying career choice. He lives with his wife and pets in Birmingham and enjoys excessive amounts of coffee, contemporary literature, and music that's too loud.

Blog Posts

Just pushed an update to bootstrap-will_paginate that fixes a bug on sending the option :page_links => false to a will_paginate setup block. Big thanks to jann@github for the fix!

About_nick_fine

Update to bootstrap-will_paginate

by: Nick Fine

February 9th, 2012 15:35

Just pushed a small update to bootstrap-will_paginate that fixed this issue.

Big thanks to Michael Hartl for submitting the issue. If you're looking for a great starting Rails tutorial, you can't go wrong with his Ruby on Rails Tutorial.

Just a quick note to mention I have added support for the Twitter Bootstrap 2 Progress Bar HTML generation in the css3-progress-bar-rails gem.

About_nick_fine

CSS3 Progress Bars for Rails

by: Nick Fine

January 3rd, 2012 20:28

When one of us here at Isotope11 runs across something interesting or useful on the internet, we'll send the link to all the other devs. Over the recent holiday, Josh sent a link to another Josh and his new fancy CSS3 Progress Bars. I had an immediate need for something like this in a Rails project, so I wrote some helper methods to generate the HTML with some simple options.

I created a gem, css3-progress-bar-rails that can be dropped into a Rails 3.1+ project to utilize these status bars. To install, add 'css3-progress-bar-rails' to your Gemfile, and add require 'css3-progress-bar' into your application.css, so that the CSS is picked up by the Rails asset pipeline.

Examples

<%= progress_bar(55) %>  
 

<%= progress_bar(33, :color => 'blue', :rounded => true) %>  
 

<%= progress_bar(83, :color => 'orange', :rounded => true, :tiny => true) %>   
 

<%= combo_progress_bar([19, 9, 20, 10]) %>   
 
 
 
 

<%= combo_progress_bar([12, 15, 18, 22, 10], :tiny => true) %>   
 
 
 
 
 

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:

twitter-bootstrap-before

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:

twitter-bootstrap-after

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.