"uninitialized constant" error when I go to app base URL?

Hi,

I’m getting the below attached error when I navigate to the root of my
web application on my hosting site (dreamhost.com), however in
development it works fine. Any ideas?

That is I have one controller so the direct URL is
http://mydomain.com/contacts”. This works on dreamhost and locally.
BUT when I go to “http://mydomain.com/” this works locally (on webbrick)
but doesn’t work on dreamhost and I get the error attached below. Note
that my routes.rb entries are:

map.connect ‘’, :controller => “contacts”
map.connect ‘:controller/:action/:id’

==========================================================
Processing Base#index (for 60.241.102.61 at 2006-08-04 17:20:04) [GET]
Session ID: 3e12c1deb7bd9ebfcad74bdd7924d7d5
Parameters: {}

NameError (uninitialized constant ContactController):
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:inconst_missing’
generated/routing/recognition.rb:4:in recognize_path' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:477:inrecognize!’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:inprocess_request’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in
process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:ineach_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:ineach_cgi’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in
process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:inprocess!’
dispatch.fcgi:27

Thanks in advance

bump (still really interested in hearing back on this is someone is
across this issue - see below)

==========
Hi,

I’m getting the below attached error when I navigate to the root of my
web application on my hosting site (dreamhost.com), however in
development it works fine. Any ideas?

That is I have one controller so the direct URL is
http://mydomain.com/contacts”. This works on dreamhost and locally.
BUT when I go to “http://mydomain.com/” this works locally (on webbrick)
but doesn’t work on dreamhost and I get the error attached below. Note
that my routes.rb entries are:

map.connect ‘’, :controller => “contacts”
map.connect ‘:controller/:action/:id’

==========================================================
Processing Base#index (for 60.241.102.61 at 2006-08-04 17:20:04) [GET]
Session ID: 3e12c1deb7bd9ebfcad74bdd7924d7d5
Parameters: {}

NameError (uninitialized constant ContactController):
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:inconst_missing’
generated/routing/recognition.rb:4:in recognize_path' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:477:inrecognize!’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:inprocess_request’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in
process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:ineach_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:ineach_cgi’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in
process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:inprocess!’
dispatch.fcgi:27

Thanks in advance

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs