farbtastic-rails
Farbtastic v1.3u, colorfully bundled for Rails 3+.
Rails 3.1+
For Rails 3.1 and greater, the files will be added to the asset pipeline and available for you to use.
To enable:
- Add the following line to the file
app/assets/javascripts/application.js
(or other sprockets manifest):
- Add the following line to the file
app/assets/stylesheets/application.css
(or other sprockets manifest):
*= require farbtastic
Installation
- Add
farbtastic-rails
to your Gemfile - Run
bundle
Enjoy!
Rails 3.0
This gem adds a single generator to Rails 3, farbtastic:install
. Running the generator will install the JS, CSS and image files necessary to use Farbtastic.
Installation
- Add
farbtastic-rails
to your Gemfile - Run
bundle
- Invoke the generator:
rails generate farbtastic:install
- Add the following to your layout or view files:
<%= stylesheet_link_tag "farbtastic" %>
<%= javascript_include_tag "farbtastic" %>
You're done!
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
farbtastic-rails
Farbtastic