Greg Hauptmann
2006-Aug-05 00:25 UTC
[Rails] "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:in `const_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:in `recognize!'' /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:in `process_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:in `each_cgi'' /usr/lib/ruby/1.8/fcgi.rb:597:in `each'' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_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:in `process!'' dispatch.fcgi:27 ========================================================= Thanks in advance -- Posted via http://www.ruby-forum.com/.
Greg Hauptmann
2006-Aug-05 19:59 UTC
[Rails] "uninitialized constant" error (at dreamhost, not locally)
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:in `const_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:in `recognize!'' /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:in `process_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:in `each_cgi'' /usr/lib/ruby/1.8/fcgi.rb:597:in `each'' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_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:in `process!'' dispatch.fcgi:27 ========================================================= Thanks in advance -- Posted via http://www.ruby-forum.com/.
Seemingly Similar Threads
- my app broke this morning on with this error.
- Ruby on Rails with Apache2, MS SQL on Windows XP
- NameError (uninitialized constant UnknownAction)
- vendor/rails seems to be being ignored in preference to gem?
- app no longer runs - MissingSourceFile for any controller