tchak/rasputin — Issue #9: Unable to find template "x" when precompiling assets
Author: chrisconley
Created: 2012-01-06 21:07:55+00:00
State: open

Hey!

First, thanks for maintaining this gem; it's been great. I've just tried deploying for the first time and am having some trouble with precompiled assets on Heroku. The app can't find any of the handlebars templates, for example "Unable to find template "form_builder/components/show"." In development, everything works perfectly.

I'm running rasputin version 0.13.0 and here are my asset configurations:

```
# application.rb
config.rasputin.precompile_handlebars = true
config.assets.enabled = true
config.assets.initialize_on_precompile = false
```

```
# production.rb
config.serve_static_assets = false
config.assets.compress = true
config.assets.compile = false
config.assets.digest = true
```

And here are the relevant lines from my `assets/manifest.yml`:

```
admin.js: admin-cc25ffb8fe6489d503ced5c50ec8d726.js
form_builder/templates/components/edit.handlebars: form_builder/templates/components/edit-846d6fd5c02175fca52db40d4ec0ea71.handlebars
form_builder/templates/components/show.handlebars: form_builder/templates/components/show-d58dbe4c902cb1db8912dc09d24c38e1.handlebars
```

I can't find any references to the handlebars templates in the compiled admin.js (I believe it should reference the templates as compiled javascript functions?)

Any ideas/help would be greatly appreciated! Maybe it's just a misconfiguration on my part.

Thanks!
Chris