[Borges-users] Big update to SushiNet

Eric Hodel drbrain at segment7.net
Mon Apr 26 22:44:31 EDT 2004


I've just checked in a big update to SushiNet:

* Fix memory leak when clicking Browse over and over by returning
  to home first.
* Remove lots of extra parens because I don't like them very
  much.
* Increase functionality of the StoreCart:
  * Cart inventory can be adjusted or deleted directly from the cart.
  * No longer uses tables or other icky markup.
* Added a shortcut icon for SushiNet (favicon).                                               
I also added a new method to HtmlRenderer, #default_action_on.  Its just
like #default_action, only it accepts the name of a method to call and
an object to call it on:

class Foo < Borges::Component


  def foo()
    # ...
  end

  def render_content_on(r)
    r.form do
      # Upon submitting this form, invoke #foo on self.
      r.default_action_on :foo, self
      # ...
    end
  end

end

-- 
Eric Hodel - drbrain at segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/borges-users/attachments/20040426/1ae66196/attachment.bin


More information about the Borges-users mailing list