On Oct 4, 10:09 pm, Konrad Meyer <kon... / tylerc.org> wrote: > Quoth Filipe: > > > Hi all, > > > I'm looking for a simple webserver that could handle basic requests > > (mostly from a localhost) outputing html files. It should also be able > > to get the input from forms. Rails seems too powerful to perform such > > a simple class. > > > Sorry if this sounds confusing. I'm a newcomer to the ruby language. > > Look into WEBrick / GServer. > > -- > Konrad Meyer <kon... / tylerc.org>http://konrad.sobertillnoon.com/ > > signature.asc > 1KDownload #!/bin/env ruby require 'webrick' include WEBrick s = HTTPServer.new( :Port => 2000, :DocumentRoot => Dir::pwd ) trap("INT"){ s.shutdown } s.start Run that in a directory with html files. That will serve them up for ya, then go from there. If you want a small mvc pattern, then check out camping. A little more in-depth but smaller than rails is merb. I prefer merb myself.