Dick Davies wrote:
> Why would you use this rather than Warbler (for example)?
Because it is really simple to use. You can create a simple webapp to do
an addition x+y with just one line of codes:
------------add.rb--------------------
ctx.print(ctx.getParam('x').to_f + ctx.getParam('y').to_f)
--------------------------------------
------------add.erb--------------------
<%= ctx.getParam('x').to_f + ctx.getParam('y').to_f %>
---------------------------------------
then invoke it by
http://..../add.rb?x=2&y=3
http://..../add.erb?x=2&y=3
I just added these two examples on
http://services.tudbc.com/tudbc/TudbcJRubyServletDemo/demo/demo.html
You can try it yourself.
All you need to do is to create the .rb or .erb files. And you're ready
to go. No more setup, no more warbler, or deploying.
--
Posted via http://www.ruby-forum.com/.