-- jzdCOEO0+D2Ejrc82TA Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2006-09-19 at 23:39 +0900, Jonathan Denni wrote: > "In order to use eruby with the Apache Web server, you need to perform > the following steps. > > * Copy the eruby binary to the cgi-bin directory. > > * Add the following two lines to httpd.conf: > > AddType application/x-httpd-eruby .rhtml > Action application/x-httpd-eruby /cgi-bin/eruby" > > i found this here: > http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html That's one way to make ruby talk to the web -- CGI, so not the fastest, and ERB, but yeah. > > is this all i need to do, or do i need a ruby-enabled web-server? > also, where do i find this eruby binary, and httpd.conf? There's a binary 'erb' in the stock ruby distro that does it, or 'eruby' from http://modruby.net/, which is likely a tad faster. There's also FastCGI, proxying to Mongrel or WEBrick, or other ways to integrate ruby into the server, depending on what you're doing. If you want a low-barrier-to-entry works-like-PHP method, use the above. I recommend FastCGI, SCGI or Mongrel for high-performance apps. Aria > > thanks > -- jzdCOEO0+D2Ejrc82TA Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFEBw3tP09exA3hooRAucGAKCmoGiXqHgN4qsbmkvDyiGoBcj7VgCdG5oq pQUxTt7DDo8OKRCjI4o1KPUy -----END PGP SIGNATURE----- -- jzdCOEO0+D2Ejrc82TA--