SproutCore 2.0 for Rails 3.1.
Add the gem to your application Gemfile:
bundle install and add the following line to
//= require sproutcore
Ask Rails to serve HandlebarsJS templates to SproutCore
by putting each template in a dedicated ".js.hjs" file
and including the assets in your layout:
Bundle all templates together thanks to Sprockets,
//= require_tree .
Now a single line in the layout loads everything: