Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Problem with mustache #6

Open
gpambrozio opened this issue Jan 5, 2012 · 3 comments
Open

Problem with mustache #6

gpambrozio opened this issue Jan 5, 2012 · 3 comments

Comments

@gpambrozio
Copy link
Contributor

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 <top (required)>'
@gpambrozio
Copy link
Contributor Author

This fixed the problem for me:

gpambrozio@81ca473

@tonydewan
Copy link
Member

Can you submit a pull request to merge these changes?

@gpambrozio
Copy link
Contributor Author

Done. I didn't do it before because the commit has some extra stuff that maybe does not belong in the pull.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants