Closed mraaroncruz closed 11 years ago
Just to close the loop :) #3
Will look into this for the next release.
Any chance of a patch for this?
I'll give a strong maybe. I don't have a great record of following through on these things.
from what I learned yesterday, the 'require_tree . ' needs to be manually adjusted after running the task:
rake backbone:install
The line with require_tree . needs to be put at the end. I started investigating whether this can be done by parsing the manifest file before injecting the backbone dependencies. My status can be tracked here in the upcoming days/week: https://github.com/mulderp/backbone-on-rails/commits/master
Thanks for looking into this. It's a good idea to create a branch for your patches, that way it's easier to keep your master branch in sync with the 'official' one.
should be solved by this: https://github.com/meleyal/backbone-on-rails/pull/29
If you don't have the line
//= require_tree
in yourapp/assets/javascripts/application.js[.coffee]
file and run the generator, backbone-on-rails doesn't add the dependencies and quietly swallows the error(?). If I hadn't watched the Railscast, I wouldn't have even noticed this. Kills core functionality. If I use the lib in more than one project, I will submit a patch. Maybe is what caused Issue #2? Speculation of course ;)