Pretty gauges for your rails app
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/views/gauges
lib
test
vendor/assets/javascripts
.gitignore
Gemfile
README.md
Rakefile
gauge.gemspec

README.md

Installation

Add to your project Gemfile

gem 'gauge', git: 'git@github.com: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

Usage

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" %>

It's Pretty

gauge