supermatter/reviewthis — Issue #6: Problem with mustache
Author: gpambrozio
Created: 2012-01-05 16:45:54+00:00
State: open

I'm having problems when sending email. Sems like mustache is trying to read a file named layout.mustache instead of email.mustache. The following stack trace is from a modified version of reviewthis that tries to send a test email on a get request to make it easier for me to debug:

```
2012-01-05T16:34:11+00:00 app[web.1]: No view class found for email in ./views/
2012-01-05T16:34:11+00:00 app[web.1]: No view class found for layout in ./views/
2012-01-05T16:34:11+00:00 app[web.1]: Errno::ENOENT - No such file or directory - /app/templates/layout.mustache:
2012-01-05T16:34:11+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/mustache-0.11.2/lib/mustache.rb:174:in `read'
2012-01-05T16:34:11+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/mustache-0.11.2/lib/mustache.rb:174:in `template'
2012-01-05T16:34:11+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/mustache-0.11.2/lib/mustache.rb:308:in `template'
2012-01-05T16:34:11+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/mustache-0.11.2/lib/mustache/sinatra.rb:101:in `mustache'
2012-01-05T16:34:11+00:00 app[web.1]: /app/reviewthis.rb:47:in `mail'
2012-01-05T16:34:11+00:00 app[web.1]: /app/reviewthis.rb:68:in `block in '
```