leshill / handlebars_assets

Use handlebars.js templates with the Rails asset pipeline.
MIT License
648 stars 159 forks source link

A cryptic error message when using rails-backbone #50

Closed a-square closed 11 years ago

a-square commented 11 years ago

I'm using this gem with https://github.com/codebrew/backbone-rails. For some reason I can't get it to work, exec_js dies with a cryptic error TypeError: Cannot read property 'name' of null.

I'm not sure this error arises in this gem, but AFAIK rails-backbone doesn't use exec_js (at least it's not listed in their Gemfile), so it's likely. How do I get to the bottom of this?

leshill commented 11 years ago

Hi @Kallikanzarid,

As far as I know, there is no conflict there. It is more likely a template bug? Do you mind putting up a gist of your config and template?

a-square commented 11 years ago

There it is: https://gist.github.com/4688466

leshill commented 11 years ago

Hi @Kallikanzarid,

Both of those templates compile correctly for me. You might try dropping into the debugger during the precompile to see if there is more information to be gathered on your bug.

a-square commented 11 years ago

Sorry for a false issue, turned out to be a coffeescript compiler error <_<