On Wed, Aug 06, 2003 at 10:25:31PM +0900, Brian Candler wrote:
> ISTR it uses Webrick, and since that's now part of ruby-1.8.0, it should be
> easier to install.
Just installed, it was a doddle: you need 'installpkg-0.0.1' and
'borges-0.2.0', then
cd /usr/local/share/examples/ruby/borges
ruby counter.rb
and then point your web browser at
http://yourmachine:7000/counter
It doesn't work with 'back' in the way I thought though; if I increment to
4, click back a few times, then click 'inc' on 1, I still get 5. But I have
a lot to learn about this framework
Also I couldn't get pagecounter.rb to work as-is; you need to change
"counter2" to something which doesn't end with a number, e.g. "pagecounter"
because a request to
http://foo:7000/counter2 seems to be interpreted as
'counter'.
Cheers,
Brian.