[typo] generating the base URL

Dick Davies rasputnik at gmail.com
Thu Nov 17 10:44:00 EST 2005


url_for()

On 17/11/05, Marco van Hylckama Vlieg <marco at i-marco.nl> wrote:
> Hi all,
>
> I'm looking for a way to generate a Typo blog's base URL.
> I have a default gravatar in my theme which I want to send as a
> parameter to gravatar.com.
> I can generate a path like /images/theme/default_gravatar.png but I
> actually need:
>
> http://www.serverhostname.com/images/theme/default_gravatar.png
>
> Is there any way to generate that string from within Typo?
>
> I looked through the Rails API but I can't find a thing....
>
> Thanks in advance!
>
> Marco
>
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>


--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/



More information about the Typo-list mailing list