Closed nzaillian closed 10 years ago
+1
+1
@nzaillian - wicked awesome. You mind if I pull this into https://github.com/westonplatter/railsy_backbone?
sure!
@nzaillian thanks. :smile: . If you don't mind, I added you credited with with the change. https://github.com/westonplatter/railsy_backbone/pull/6/files
@nzaillian I have added this after fixing conflicts. Thanks.!
The install generator choked for me with a stack trace because I have an application.js.coffee manifest instead of application.js. Also, I modified the generator to inject the require directives after "require jquery_ujs" (instead of "require_tree") because often times (as in my own present case) I'm require_tree'ing several directories and so the generator was injecting the require directives for backbone (and the dependencies) several times over (before each "require_tree"). It's a safe assumption that just about every rails app will have a "require jquery_ujs" line in the application js/coffee manifest, I think, but if you disagree you can ignore/revert that.