Sample code for Rails and Javascript/Coffeescript (Backbone)