What you have done should work.  Did you give it a try?  Using "irb"
as shown below is often a good way to experiment with syntax to make
sure it does as you expect.  Thanks.

Cheers,
Daniel.

irb(main):031:0> base_url = 'http://www.google.com/'
=> "http://www.google.com/";
irb(main):032:0> puts base_url
http://www.google.com/
=> nil
irb(main):033:0> about_url = base_url + '/intl/en/about.html'
=> "http://www.google.com//intl/en/about.html";
irb(main):034:0> puts about_url
http://www.google.com//intl/en/about.html

On 03/10/06, Astha Raj <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi All,
>
>
>
> This is what I want to do. I want the base URL of the site to be a variable
> and to get other pages, I could create varaibles attaching to the base.
>
>
>
> Is there any way I can do this – something like below?
>
>
>
> $base_url = 'http://www.google.com/'
>
>
>
> $about_url = $base_url + '/intl/en/about.html'
>
>
>
> Thanks,
>
> Astha
>
>
> --
>  No virus found in this outgoing message.
>  Checked by AVG Free Edition.
>  Version: 7.1.407 / Virus Database: 268.12.9/458 - Release Date: 9/27/2006
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to