Apache not Interpreting Ruby or Something ...

I am trying to get Ruby/Rails working with Apache. I have mod_ruby installed and loaded and fcgi set up (according to http://www.tummy.com/Community/Articles/rails-fcgi/), but when I try an Hello World in Rails it just keeps giving me:

[code] #!/usr/bin/ruby18

Typically I got it soon after posting. I hadn't configured Apache with the required flag (-D FCGID) to make the fcgi module load. After that there were just a load of annoying permissions problems, and now I am finally on Rails.