CSS3 Progress Bars for Rails
I wrote some helper methods for Rails to generate the HTML for the progress bars.
Thought it might be useful.
This gem assumes you're using Rails 3.1+, including the asset pipeline.
Into the Gemfile:
Into the application.css header:
*= require 'css3-progress-bar'
In a view:
<%= progress_bar(33, :color => 'blue', :rounded => true) %>
Also, I have added support for the upcoming Twitter Bootstrap 2 progress bar styling as well. To use:
<%= bootstrap_progress_bar(33, :color => 'info', :striped => true) %>
Except where indicated:
Copyright (c) 2012 Nicholas Fine, released under the MIT license.