- URL- ActionMailer? , , , :
ActionView::TemplateError (Missing host to link to! Please provide :host parameter or set default_url_options[:host])
, ActionMailer , : host,: controller : action:. , ActionPack . url_for .
<%= message_url %>
<%= url_for :controller => "messages", :action => "index" %>
, URL- ActionMailer. ActionMailer, ActionMailer:
1. set a global value
2. pass the option each time you generate an URL
default_url_options , URL .
.