chaves-rails
Chaves.js, bundled for Rails 3.0 and up.
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):
//= require jquery.chaves
Installation
- Add
chaves-rails
to your Gemfile - Run
bundle
Enjoy!
Rails 3.0
This gem adds a single generator to Rails 3, chaves:install
. Running the generator will install the JavaScript file necessary to use Chaves.
Installation
- Add
chaves-rails
to your Gemfile - Run
bundle
- Invoke the generator:
rails generate chaves:install
- Add the following to your layout or view files:
<%= javascript_include_tag "jquery.chaves" %>
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
chaves-rails
- Freely distributable and licensed under the MIT license.
- Copyright (c) 2012 Phil Cohen ([email protected])
- http://phlippers.net/
Chaves.js
- Dual licensed under the MIT and GPL licenses.
- Copyright (c) 2012 Joel Oliveira
- https://github.com/jayroh/chaves.js