Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (19 sloc) 575 Bytes

MiniColors for Rails

jQuery.MiniColors.js for Rails 3.1+

Getting started

Add the gem to your application's Gemfile:

gem 'mini_colors-rails'

Run bundle install

Then add following line to app/assets/javascripts/application.js:

//= require minicolors

And the following one in app/assets/stylesheets/application.css:

*= require minicolors

You can now use miniColors as define in the documentation:

  optionName: value,
  optionName: value,