Not sure how I should make this “domain” variable available across my
entire app the “Rails” way.
I would put it in your config/environments/[environment].rb files, one
per environment, or put the local (test/development) one in your
environment.rb file, and the deployment version in the production.rb
file.
in each environment. This has the added bonus of ensuring that full URLs
always get generated with the right host. You may need to also set
config.action_mailer.default_url_options[:host] to get the same
information
to your mailers.
–Matt J.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.