I am trying to get Erubis setup to process .rhtml files on an Apache web server.
I have Ruby installed (v 1.9.2p290) and I installed Erubis(2.7.0) through Ruby Gems.
I can't seem to find the proper way to configure the httpd.conf file -- I found a guide for setting up eruby on Apache at http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html -- I tried using those config settings, restarted apache, etc... but the rhtml file is not being parsed (it's just outputting the ruby expression as flat text)
I added the following lines to the httpd.conf file, but it didn't do anything--
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby
I feel like that would work if I was installing eruby itself, not erubis. The erubis website doesn't offer any clear examples on how to get this up and running, other than installing via gems which I've already done.
I also tried changing the file and conf setting from .rhtml to .eruby, just in case, and that wasn't working either.
Please help!