From: Lloyd Zusman Date: 2005-02-03T09:44:00+09:00 Subject: Re: [ANN] Wee 0.7.0 + Tutorial Videos Michael Neumann writes: > > [ ... ] > > * Added "Pageless" mode. In pageless mode, the URL displayed in your > browser always looks like "/app". The session id is stored as cookie > and there is no page_id, hence "pageless" mode. No backtracking is > performed! Example: > > require 'wee/pageless' > > app = Wee::Utils.app_for(YourMainComponent, > :session => Wee::PagelessSession, > :application => Wee::PagelessApplication) > > Wee::WEBrickAdaptor. > request_class(Wee::PagelessRequest). > register('/app' => app). > start Thank you for all your great work on wee. I got the following error when trying to invoke an example in "Pageless" mode (wrapped to fit it better in this email message): /usr/local/lib/ruby/gems/1.9/gems/wee-0.7.0/lib/wee/utils/helper.rb:29: in `app_for': uninitialized constant Wee::Md5IdGenerator (NameError) from ./hello-wee.rb:22 Here's my code: #!/usr/bin/ruby require 'rubygems' require 'wee' require 'wee/pageless' require 'wee/utils' require 'wee/adaptors/webrick' class HelloWorld < Wee::Component def click @clicks = (@clicks || 0) + 1 end def render r.h1.onclick_callback(:click).with("Hello World!") r.text "#{ @clicks || 'No' } clicks" end end app = Wee::Utils.app_for( HelloWorld.new.add_decoration( Wee::PageDecoration.new("Hello World")), :session => Wee::PagelessSession, :application => Wee::PagelessApplication ) Wee::WEBrickAdaptor. request_class(Wee::PagelessRequest). register('/app' => app).start Any ideas as to what the problem might be? Thanks in advance. -- Lloyd Zusman ljz@asfast.com God bless you.