leshill / handlebars_assets

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

I get "couldn't find file handlebars.runtime" error inside a rails engine #141

Open Allanon29 opened 8 years ago

Allanon29 commented 8 years ago

I really like the idea of this gem, but when I require it in application.js ( inside a rails engine ) I get this error: "couldn't find file handlebars.runtime"

This happens with handlebars.runtime and handlebars also. I also tried to require it like this: engine_name/handlebars.runtime

but the same error occurs.

Any suggestions to solve this?

blindMoe commented 8 years ago

I have the same issue. It does not seem like the gem's assets are being pumped into the asset pipeline. Do we need to run a generator in order to have the handlebars javascript files put in the proper place?