Add to your project Gemfile
gem 'gauge', git: '[email protected]:AgilionApps/gauges.git'
gauge requires Raphael Javascript library. It is bundled with this Gem in case you don't already use it. Just add the following dependencies to your app/assets/javascripts/application.js file
//= require raphael
//= require gauge
To draw a gauge call the gauge erb tag with div, percent, fill and highlight properties like so...
<%= gauge div: "my-div", percent: "50", fill: "red", highlight: "blue" %>