shoes / shoes4

Shoes 4 : the next version of Shoes
Other
1.59k stars 194 forks source link

also delegate builtin methods for widgets + URLs #1542

Closed PragTob closed 6 years ago

PragTob commented 6 years ago

Wowzies, that seems like a pretty big oversight on our part. Glad we found it finally... maybe we should wip up some sample?

Minimal reproduction script:

class AppComponent < Shoes
  url '/', :index
  def index
    alert("doesn't work")
  end
end
Shoes.app width: 800, height: 600, title: 'testing page'

side note: It's amazing after a lot of work on big applications and bigger features on benchee how productive one can feel with a system knowledge, not so a big system (but well designed and well tested if I might say so!) and get a critical bugfix in in <20 minutes.

PragTob commented 6 years ago

Oh yeah, fixes #1494

jasonrclark commented 6 years ago

I'd be 💯 in favor of adding that sample or something like it. I feel like part of the low testing (at least on my part) around widgets and visit style apps is the lack of good samples around it.