Hi all,
found ruby 1.6 buried on my new web host's server & can get mysql4.1
access fine (now that is). I can get erb on this server to work via a
bit of trickery. The question I have is, how do I set up .htacces or
whatever the file is called to get apache to run this for me...
ruby16 erb.rb thefile.rtml
when a user clicks on the link with 'thefile.rtml' in it.
....so I can do all that embedded ruby stuff in thefile.rtml & present
the user with whateever I want.
The test files, test.rb, 0.rb and 1.rb that come with erb 1.4.3 work
for me.
The server doesn't or won't support mod_ruby or fastcgi.
I know there is an AddHandler statement but don't know how to use it
for this.
The prior statements tell apache to run rubyrun.cgi for files ending in
..rhtml or .rtml. rubyrun.cgi (not tested) takes the file and pareses it
trough erb and displays the results in the browser.