Using mod ruby and eRuby
From OCS Support Wiki
On all of our shared hosting servers, mod_ruby and eruby are installed. mod_ruby lets you run your Ruby applications faster than traditional CGI scripts, and eruby allows you to use Ruby inline with your HTML code, much like you would with PHP.
[edit] mod_ruby
There are two basic methods to use mod_ruby. First, you can simply name your file with the .rbx extension. This will tell Apache to run your file as a Ruby script. You can also make a folder called ruby in your public_html folder and put any files you wish to run as Ruby scripts there.
[edit] eruby
Just like with mod_ruby, there are two methods to make a file be parsed by eruby. You can name the file with the .rhtml extension, or you can make a folder called eruby in the public_html folder and use eruby on any file in that folder.
With eruby, start your ruby code with <% in your HTML file, then end it with %>. You can enter eruby mode multiple times, and can even stay in it for the entire file if you like, again, just like PHP.
For more information on the syntax of eruby, please visit the eruby Syntax wiki.
