leshill / handlebars_assets

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

Not working on Heroku with Rails 3.1 #36

Closed runemadsen closed 11 years ago

runemadsen commented 11 years ago

I'm running this successfully on local, but when pushing to Heroku, I'm getting:

couldn't find file 'handlebars.runtime'

If I add the handlebars.runtime in my libaries, it says that HandlebarsTemplates is undefined. So it seems like the gem is not working at all.

Any tips for fixes? Running Rails 3.1.

runemadsen commented 11 years ago

Okay, here's the answer: I had changed the name of application.js to shared.js, and Rails would not precompile the file. I added the name to the configuration precompile array, and it's working now.