使用 Pony 发送 HAML 电子邮件
Sinatra 1.2.6 / Haml 3.1.2 和 Pony
我收到“错误数量的参数错误(0 为 1)”,它指向
我正在发送的sinatra/base.rb
def haml(template, options={}, locals={})
render :haml, template, options, locals
end
:html_body => (haml :html_email) 致 Pony
任何帮助将不胜感激!
M。
Sinatra 1.2.6 / Haml 3.1.2 and Pony
I am getting "wrong number of arguments error (0 for 1)" which points to
sinatra/base.rb
def haml(template, options={}, locals={})
render :haml, template, options, locals
end
I am sending :html_body => (haml :html_email) to Pony
Any help would be very much appreciated!
M.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的代码似乎可以在 Sinatra 1.2.6、Haml 3.1.3 和 Pony 1.3 中运行。
虽然我会使用 haml(:test) 而不是 (haml :test)
test.rb:
test.haml:
Your code seems to work in Sinatra 1.2.6, Haml 3.1.3 and Pony 1.3.
Although I would use haml(:test) instead of (haml :test)
test.rb:
test.haml: