librelist archives

« back to archive

Using urls and custom widgets

Using urls and custom widgets

From:
Felipe Sere
Date:
2014-07-16 @ 13:21
Hi guys,

I am having problems combining the url feature to control the flow of my 
TicTacToe along with my
custom widgets.

I feel that I can go either/or, but not both.

My custom widgets work if my main app simple runs  within
Shoes.app do
	….here I’ll call my custom widgets…
end

The url routing only works if I inherit from Shoes 
class MyApp < Shoes
	url ‘/‘ …
	url ...
end

and then call Shoes without a block.


How do I have to go about combining both elements? 
As far as I can reason about it, it has something to do with some methods 
being instance methods and others being class methods.

Thanks for your help,
Felipe

Re: [shoes] Using urls and custom widgets

From:
Tobias Pfeiffer
Date:
2014-07-16 @ 16:04
Hi Felipe,

unfortunately this is a similiar bug to the one you reported before. A
month ago or so I/we went on a spree to replace the dynamic
method_missings with explicit delegations. In that spree we forgot about
the fact that methods might be dynamically added to the Shoes:App. Sorry
about that and thanks for testing out preview versions of Shoes.

As hinted before I'm very busy right now but hope to finish my thesis
soon and will then have time to tend to these issues. You can also give
it a stab yourself and I'll try to give timely feedback (usually that's
one of my top priorities, not right now, so sorry :) )

I updated that issue with this information.

Cheers,
Tobi

On 07/16/2014 03:21 PM, Felipe Sere wrote:
> Hi guys,
> 
> I am having problems combining the *url* feature to control the flow of
> my TicTacToe along with my
> custom widgets.
> 
> I feel that I can go either/or, but not both.
> 
> My custom widgets work if my main app simple runs  within
> /Shoes.app do/
> /….here I’ll call my custom widgets…/
> /end/
> 
> The url routing only works if I inherit from Shoes 
> class MyApp < Shoes
> url ‘/‘ …
> url ...
> end
> 
> and then call Shoes without a block.
> 
> 
> How do I have to go about combining both elements? 
> As far as I can reason about it, it has something to do with some
> methods being instance methods and others being class methods.
> 
> Thanks for your help,
> Felipe
> 

-- 
www.pragtob.info