Group: comp.lang.ruby
From: Leslie Viljoen
Date: Sunday, February 17, 2008 3:41 PM
Subject: Re: [ANN] Webby 0.7.2

On Feb 15, 2008 6:18 PM, Tim Pease wrote:
>
> > 2. How do you create links to other content pages without specifying
> > the URL directly?
>
> <%= link_to_page( :title => "Your Page Title" ) %>

Because the "url_for" function produces url's that start with a "/",
I cannot open my generated index.html as a file on my harddrive -
all the links are absolute. I changed the url_for function to leave
out the leading slash and now everything seems to work locally
and through a server. Can you think of a problem this may cause?

> Thanks for enjoying webby :) It's been fun to write and fun to use.
> If you want to add updates to the manual, grab the latest version from
> the RubyForge svn and shoot me a diff file.

I hope I can contribute once I have made some progress myself. There's
a lot more that can be put in there.

Webby is quite a bit of fun so far! I'll post a link when my site is up.

Safety Articles | Usenet Groups | Usenet News | Bluegrass