From: Jeremy Woertink Date: 2007-11-07T10:12:18+09:00 Subject: Re: Write webpages in Ruby without Rails? - Newb Question rgossen 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. well, you can write HTML like a string, then have the output be an HTML file. So, html_file = File.new("C:\web_pages\index.html", "w+") html_file.write("\n\nOMG THIS IS GOING TO TAKE A LONG TIME\n\n") html_file.close Hopefully someone has a better idea :) Good luck ~Jeremy -- Posted via http://www.ruby-forum.com/.