From: Martin DeMello Date: 2008-07-09T01:33:49+09:00 Subject: Re: Ruby without rails? On Tue, Jul 8, 2008 at 9:23 AM, Shashank Agarwal wrote: > I'm trying to develop a small website, and was planning to use Ruby > alone (I don't know much Rails, and wasn't planning on learning it for > the project). Is there a way to run .rb files under a webserver. The simplest thing to do is use one of the (many excellent) microframeworks out there. (I can personally recommend ramaze, and sinatra looks excellent too). But to answer your original question, take a look at http://coolnamehere.com/geekery/ruby/web/cgi.html - your script needs to be executable, registered with your webserver as a cgi handler, and emit the proper headers. As your app gets more complicated, you'll probably need to handle CGI forms, redirects, etc, all of which is a nuisance, which is why I recommend using a microframework. martin