From: Lars Haugseth Date: 2012-06-14T17:18:45+09:00 Subject: Re: About Sinatra On 06/14/2012 10:08 AM, Bin Jin wrote: > main.rb: > > require 'sinatra' > > get '/' do > haml :index > end > > > views/index.haml: > %a{:href => "www.google.com"}link > > when i run this program and click link in html page, it will direct to > localhost/www.google.com when i expected just www.google.com. > > so what is the problem and how to solve this problem ? Try using a valid URL. Hint: if you drop the protocol prefix, the URL is interpreted as being relative to your current location. -- Lars Haugseth