in my rails app for my environments, i have the following:
config.action_mailer.default_url_options = { :host => '0.0.0.0:3000' }
How can I access that param in a user_mailer?
I want to get what host equals.
Thanks
ActionMailer::Base.default_url_options[:host]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.