-
Add requirejs-rails to your project - see instructions at [https://github.com/jwhitley/requirejs-rails]
-
Add onionjs
gem 'onionjs'
-
In your view file, add an app
<%= onionjs_app :calendar %>
-
Start making controllers - see usage with
rails generate onionjs:module
make test