Reflux::Rails
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'reflux-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install reflux-rails
Usage
This gem depends on browserify to load the javascript file add browserify gem in your Gemfile
gem "browserify-rails"
Create package.json in your Rails root:
{
"name": "something",
"devDependencies" : {
"browserify": "~> 4.1"
},
"license": "MIT",
"engines": {
"node": ">= 0.10"
}
}
Then run:
npm install
Include reflux in your app/assets/javascripts/application.js
var Reflux = require('./reflux');
Contributing
- Fork it ( https://github.com/[my-github-username]/reflux-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request