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

  1. Fork it ( https://github.com/[my-github-username]/reflux-rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request