Roger Pack wrote:
>> complicated, this is my first experience with configuring apache and
>> ruby on rails and I am getting very frustrated. I am running apache2 on
>
> Maybe mod_rails will help, as it simplifies deployment.
> Cheers!
> -=R
I have installed mod_rails but still cant seem to get the embedded ruby
working in .rhtml files. Do I need eruby for this if so how do I
configure it with mod rails? Following is the configuration I had with
eruby and mod_ruby which was working before. It seems from what I have
read that ruby comes with erb for embedding ruby in .rhtml and .erb.html
files. I can revert back to these settings but I really want to
understand what is going wrong here.
The following code was stored in /conf.d/ruby.conf
<code>
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>
ErrorDocument 500 /etc/apache2/customerror/error_500.rb
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
</code>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---