Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beanieboi/morrisjs-rails
morris.js for the Rails Asset Pipeline
https://github.com/beanieboi/morrisjs-rails
Last synced: 7 days ago
JSON representation
morris.js for the Rails Asset Pipeline
- Host: GitHub
- URL: https://github.com/beanieboi/morrisjs-rails
- Owner: beanieboi
- Created: 2012-12-12T11:12:32.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-25T09:35:36.000Z (over 1 year ago)
- Last Synced: 2024-04-29T16:42:02.963Z (6 months ago)
- Language: Ruby
- Size: 51.8 KB
- Stars: 31
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# morrisjs-rails
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.
## Installation
Add this to your application's Gemfile:
gem 'morrisjs-rails'
gem 'raphael-rails'And then execute:
$ bundle
Or install it yourself as:
$ gem install morrisjs-rails
$ gem install raphael-rails## Usage
Add the following directive to your Javascript manifest file (application.js):
//= 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):
@import 'morrisjs-rails';
## Versioning
The naming schema is identical to morris.js.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request