Hi,
On Dec 5, 2007 1:04 PM, Brian Bush
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
>
> Hi-
>
> I''m suddenly getting this rake error where as before I
wasn''t. And
> nothing''s been changed. As you can see it says something about
> "load_missing_constant". Is my development environment broken?
Can
> someone please tell me what this error means?:
>
It looks like your ApplicationController class might be missing. This file
should be located in RAILS_ROOT/app/controller/application.rb
Does this file exist? Something in that file may point you in the right
direction.
>
> bbgun@echobase:~/RailsProjects/rails_space$ rake test:functionals
> (in /home/bbgun/RailsProjects/rails_space)
> /usr/local/bin/ruby -Ilib:test
> "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3
> /lib/rake/rake_test_loader.rb"
> "test/functional/user_controller_test.rb"
> "test/functional/community_controller_test.rb"
> "test/functional/faq_controller_test.rb"
> "test/functional/spec_controller_test.rb"
> "test/functional/profile_controller_test.rb"
> "test/functional/site_controller_test.rb"
>
>
/home/bbgun/RailsProjects/rails_space/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in
> `load_missing_constant'': uninitialized constant
ApplicationController
> (NameError)
> from
>
>
/home/bbgun/RailsProjects/rails_space/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in
> `const_missing''
> from
>
>
/home/bbgun/RailsProjects/rails_space/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:in
> `const_missing''
> from
>
>
/home/bbgun/RailsProjects/rails_space/config/../app/controllers/application.rb:3
> from
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require''
> from
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require''
> from
>
>
/home/bbgun/RailsProjects/rails_space/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in
> `require''
> from
>
>
/home/bbgun/RailsProjects/rails_space/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in
> `new_constants_in''
> from
>
>
/home/bbgun/RailsProjects/rails_space/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in
> `require''
> ... 12 levels...
> from
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3
> /lib/rake/rake_test_loader.rb:5:in
> `load''
> from
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3
> /lib/rake/rake_test_loader.rb:5
> from
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3
> /lib/rake/rake_test_loader.rb:5:in
> `each''
> from
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3
> /lib/rake/rake_test_loader.rb:5
> rake aborted!
> Command failed with status (1): [/usr/local/bin/ruby -Ilib:test
> "/usr/local...]
>
> (See full trace by running task with --trace)
> bbgun@echobase:~/RailsProjects/rails_space$
> --
> Posted via http://www.ruby-forum.com/.
>
> >
> HTH,
Michael Guterl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---