jQuery miniColors for Rails 3.1+
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
vendor/assets
.gitignore
Gemfile
LICENSE
README.md
Rakefile
mini_colors-rails.gemspec

README.md

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:

$([selector]).miniColors({
  optionName: value,
  optionName: value,
  ...
});