I’m very new to Rails. I’ve been trying to set it up on my Linux server.
The installation was smooth and painless. I followed the instructions on
the Ruby on Rails website.
So I’m running Rails 1.2.3, ruby 1.8.4 and Gem 0.9.0. I created a new
I’m trying to use Apache instead of having to use WebBrick because my
server already uses Apache. So, it should be using dispatch.cgi via
.htaccess. When I visit the page in my browser, I get the standard
“Welcome aboard” message. But when I click “About your applicationâ€™s
environment” I get “Application error
Rails application failed to start properly”. Digging into Apache’s error
log, it is complaining about Premature end of script headers. So, I did
some digging and found I should try running dispatch.cgi through the
shell. When I do, I get this:
[[email protected] public]# ./dispatch.cgi
Status: 400 Bad Request
to_constant_name': Anonymous modules have no name to be referenced by (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:214:inqualified_name_for’
const_missing' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:117:inreset_after_dispatch’
I’ve looked high and low and cannot find anything pointing to what the
problem might be. I should note I did try running WebBrick, and through
WebBrick everything works fine. So, it’s definitely an issue with
dispatch.cgi I just don’t know what.
Thanks in advance.