I have a Rails application, and now I’m trying to make a cgi-script
out of Rails, but it should operate with Rails database and models.
Next script doesn’t seem to work everywhere:
gem ‘activerecord’, ‘=2.1.0’
It works perfectly from console, but I cannot force it to work as a
web page. It gives me “500 Internal error” page, and Apache log says
[error] mod_ruby: error in ruby
[error] mod_ruby: /usr/local/lib/site_ruby/1.8/rubygems/
gem_original_require': no such file to load -- active_record (LoadError) [error] mod_ruby: from /usr/local/lib/site_ruby/1.8/rubygems/ custom_require.rb:32:inrequire’
[error] mod_ruby: from /var/www/pc/api.rbx:6
[error] mod_ruby: from /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in
load' [error] mod_ruby: from /usr/lib/ruby/1.8/apache/ruby-run.rb:53:inhandler’
Apache 2.2.4 + mod_ruby + mod_fcgid
One of my models “acts as tree” in the Rails application. But how can
I make it to work in my cgi-script?
I have tried:
But it doesn’t help.
Thanks in advance,