Options +ExecCGI
AddHandler cgi-script .rb
DirectoryIndex index.rb

※httpd.confで次のオーバーライドを許可しておくこと

AllowOverride Options FileInfo Indexes