在邮件视图中:
<%= url_for(controller:'resas', action: 'show', only_path: false) %>
耙路线:
resa GET /resas/:id(.:format) resas#show
这是尝试生成电子邮件时的异常:
No route matches {:action=>"show", :controller=>"resas"}
我的主机是参数化的(作为本地主机)。