This is sample Rails application that demonstrates usage of
- Backbone.js
- CoffeeScript
- Jasmine
- Rails 3.1 asset pipeline
This code is from the demo used during RailsWayCon 2011 conference presentation Rails-like JavaScript using CoffeeScript, Backbone.js and Jasmine. Source code is based on original Todos application by Jérôme Gravel-Niquet.
In this fork, I've moved it around and upgraded it to rails 3.1
Install gems, run migrations and start application with
bundle install
rake db:migrate
rails server
And then visit http://localhost:3000
.
Run rake jasmine
and then visit http://localhost:8888
to execute Jasmine tests and see results.
Backbone.js models and views written in CoffeeScript are located in app/assets/javascripts
directory and Jasmine tests are located in spec/coffeescripts
directory.