From: Justin Collins Date: 2005-11-19T07:47:07+09:00 Subject: Re: web development w/ ruby Cam wrote: > Hi guys, > > I need to make some simple web-pages at work for internal use > (changing svn password, modifying postfix email-aliases, etc). I'd > like to use ruby for this. I haven't really done anything w/ > web-development in many years, and back then i was using php. I know > that ruby on rails is the hottest thing ever right now, but it doesn't > seem like i should need database-centric stuff like that for the > simple web-apps i need to develop. I found mod-ruby and have set it > up, but i'm not sure how to best use it now. Is there any > documentation avaliable? do i just use puts to output html streams, > or is that streamlined for me somehow? How do i ask for input, etc.? > > Thanks, > Cameron Matheson > http://ruby-doc.org/core/classes/CGI.html The CGI class with the HTML extensions will take care of all the HTML output. For example: require 'cgi' cgi = Cgi.new('html4') cgi.out { cgi.html { cgi.body { "Hello!" } } } It has functions for nearly all HTML tags/forms/session/cookie stuff. -Justin