Getting app comple URL based on the environment

Carlos
Mon, 19 Feb 2007 22:05:01 -0000

I''m building an email with a URL on it that change depending on the
environment I''m at. For example http://localhost:3000/demo on
development and http://www.xyz.com/demo on production.

Is there any environment variable or method that could tell me the
complete URL of my web application? I''m looking for an alternative to
environment config files.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---