开发者

Rails - How to access the current environment's host URL?

开发者 https://www.devze.com 2023-02-14 05:52 出处:网络
in my rails app for my environments, i have the following: config.action_mailer.default_url_options = { :host => \'0.0.0.0:3000\' }

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开发者_Go百科 what host equals.

Thanks


ActionMailer::Base.default_url_options[:host]
0

精彩评论

暂无评论...
验证码 换一张
取 消