I am trying to run the Depot application example, but I get the
following:

 NameError in StoreController#index

uninitialized constant ApplicationController

RAILS_ROOT: C:/MyRuby/Depot
Application Trace | Framework Trace | Full Trace

C:/Program Files/NetBeans 6.7 Beta/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:443:in
`load_missing_constant'
C:/Program Files/NetBeans 6.7 Beta/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in
`const_missing_with_dependencies'
C:/Program Files/NetBeans 6.7 Beta/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:92:in
`const_missing'
C:/MyRuby/Depot/app/controllers/store_controller.rb:28
C:/MyRuby/Depot/app/controllers/store_controller.rb:380:in `load'

This seems to caused by the StoreController < ApplicationController.

If I change this to class StoreController < ActionController::Base,
then the basic application works. I discovered that this happens on
all the controllers in this application. That would have been ok, but
then the "authorize" method in the ApplicationController is not
available.

Anyone know why this happens? I don't understand what the message
"uninitialized constant ApplicationController" means.
ApplicationController is a class defined in application.rb.

Wes

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to