Embedded Ruby

From DesigningPatterns

Jump to: navigation, search

Installation

  • yum install eruby
  • cp /usr/bin/eruby /var/www/cgi-bin/eruby
  • Edit /etc/http/httpd.conf as follows
#Add the following lines so that embedded ruby files (.rhtml) are recognized
AddType application/x-httpd-eruby .rhtml               
Action application/x-httpd-eruby /cgi-bin/eruby

# Edit the DirectoryIndex line to include index.rhtml

Todo

  • Install mod_ruby for performance reasons?
Personal tools