Greetings,
I recently tried to deploy my RoR app on Linux with
Apache 1.3.31, using fastcgi.
I followed this link to get set up:
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel
Apache does start and so do the FastCGI processes.
Now, when I run my app and try to get to the first
page (login page), I get a Nameerror:
-------------------------
NameError in <controller not set>#<action not set>
uninitialized constant ApplicationController
/app/controllers/login_controller.rb:6
generated/routing/recognition.rb:15:in
`recognize_path''
-------------------------
It doesn''t know what ApplicationController is.
I check my application log file and see this:
Processing Base#index (for 68.209.115.240 at Wed Oct
19 11:29:54 EDT 2005)
Parameters: {}
NameError (uninitialized constant
ApplicationController):
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in
`const_missing''
/app/controllers/login_controller.rb:6
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:193:in
`load''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:193:in
`load''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:38:in
`require_or_load''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:21:in
`depend_on''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:171:in
`require_dependency''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:171:in
`require_dependency''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:183:in
`const_missing''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:71:in
`const_missing''
generated/routing/recognition.rb:15:in
`recognize_path''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:433:in
`recognize!''
/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in
`dispatch''
/home/millians/public_html/surveys/dispatch.fcgi:8
/home/millians/public_html/surveys/dispatch.fcgi:8:in
`each_cgi''
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in
`each''
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in
`each_cgi''
/home/millians/public_html/surveys/dispatch.fcgi:8
Rendering
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)
---------------------------------
Line 6 of my login_controller.rb is simply:
class LoginController < ApplicationController
Am I missing something in setting up the Ruby env with
Apache ? I can successfully run Webrick with no
problem.
Thanks for any help !
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs