morris.js for the Rails Asset Pipeline
Dependency on jQuery
This library requires jQuery. If you are using Rails 5.1 or later, jQuery is not included in a new installation. You need to add jQuery to Rails by yourself.
Add this to your application's Gemfile:
gem 'morrisjs-rails' gem 'raphael-rails'
And then execute:
Or install it yourself as:
$ gem install morrisjs-rails $ gem install raphael-rails
//= require raphael //= require morris
Add the following directive to your css manifest file (application.css):
*= require morris
Add the following directive to your sass manifest file (application.scss):
The naming schema is identical to morris.js.
- 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