On Sun, Nov 2, 2008 at 8:03 AM, Abdullah Mancy <[EMAIL PROTECTED]> wrote:
> i've tried the 3 examples on WinXP ..
>
> when the new window closed, the content of the initial window gets erased!!
I think this is normal behavior when using url() and visit().
One way to avoid that:
class ::Shoes
def header
para "header"
end
end
class Examplish < Shoes
url "/", :index
def index
header
link_to_new_window = link "make a new window" do
new_window
end
para link_to_new_window
end
def new_window
window do
header
para "a new window"
end
end
end
Shoes.app
--
Seth Thomas Rasmussen
http://greatseth.com