On Mon, Nov 10, 2008 at 11:14:46PM -0600, Josh Cronemeyer wrote:
> class Bummer < Shoes
> url "/", :index
> url "/cleveland", :cleveland
> url "/neverland", :neverland
>
> def index
> para link("go to cleveland", :click => "/cleveland")
> end
>
> def cleveland
> window :title => "cleveland" do
> para link("go to neverland", :click => "/neverland")
> end
> visit "/"
> end
>
> def neverland
> para "cherries, syrup, puppies"
> end
> end
>
> Shoes.app :title => "bummer"
Okay, this is great. I think I've got a way around this that's much
better now. You can do `window "/cleveland"` to open the window a
specific url.
So, your new methods will go like this:
def index
para link("go to cleveland") { window "/cleveland" }
end
def cleveland
para link("go to neverland", :click => "/neverland")
end
def neverland
para "cherries, syrup, puppies"
end
I think I'm also going to start doing:
Shoes.app "Bummer/cleveland", :title => "bummer"
_why