On 11/6/07, rgossen <rgossen / gmail.com> wrote: > I am a programming newb and I just bought the book "Software > Engineering for Internet Applications," and I need a server to go > through the labs. Unfortunately, the extent of my server experience > is using script/server in Rails. To do these labs, I need to write > webpages in Ruby without Rails (or any framework), but I am not sure > exactly how to go about it. > > I started to use the Apache 1.3 webserver that comes with os x and > attempted to install eruby. That doesn't seem to be working. I am > thinking there has to be an easier way. Is there a way for me to use > Mongrel or Webrick outside of Rails? I initially installed everything > using the Hivelogic instructions. I haven't played with Ruby and web outside of frameworks (Rails, Camping, etc.), but you can use Apache with mod_ruby I think. Your files will probably have to take on the eruby syntax of <% %> encapsulating code tags, which would be similar to other interactive web code (ala CodeFusion and others). As far as I can tell, Mongrel knows how to feed a web server( like Apache), but is not necessarily a complete web server itself. Somebody correct me if I'm wrong, because I can't seem to find any straight example of somebody just using Mongrel with Ruby by themselves to serve pages! thx, Todd