postanowiłem pobawić się trochę rubym, więc zainstalowałem wszystkie pakiety i rozpocząłem konfigurację apache
zgodnie z tym co znalazłem do pliku /etc/apache2/conf.d/ruby.conf (nie było więc utworzyłem) trzeba wkleić
Kod
AddType text/html .rhtml
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
RubyRequire apache/eruby-run
# Execute *.rbx files as Ruby scripts#
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# Handle *.rhtml files as eRuby files#
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
RubyRequire apache/eruby-run
# Execute *.rbx files as Ruby scripts#
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# Handle *.rhtml files as eRuby files#
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
niestety gdy chcę otworzyć przykładowy plik to ten chce się pobierać :/ co robię źle
