Re: Getting app comple URL based on the environment

Ed Hickey
Mon, 19 Feb 2007 22:28:19 -0000

request.domain in your controller should do it

ed

On 2/19/07, Carlos
<carlos.latugaye-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
>
> 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
-~----------~----~----~----~------~----~------~--~---