AnApprentice
AnApprentice

Reputation: 111070

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

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

Upvotes: 2

Views: 2907

Answers (1)

Dylan Markow
Dylan Markow

Reputation: 124469

ActionMailer::Base.default_url_options[:host]

Upvotes: 5

Related Questions