codebrew/backbone-rails — Issue #97: Using backbone-rails with jasmine-webkit-headless
Author: krikis
Created: 2012-02-28 15:34:33+00:00
State: open

When I tried to run jasmine-webkit-headless it complained that it could not find the backbone/#{application_name} file.

couldn't find file 'backbone/application_name'

This refers to an entry in 'application.js' placed there to load the generated/scaffolded main backbone application file into the Rails assets pipeline:

//= require backbone/application_name

When this line is changed to

//= require ./backbone/application_name

the problem is solved. In other application.js files I saw relative paths being loaded using the leading dot-slash too.

Maybe you could adapt your generators/scaffolders to incorporate this minor change.