Displaying 20 results from an estimated 155 matches for "load_missing_constant".
2012 Oct 21
1
load_missing_constant
........
the model is loaded correctly , checked in console:
application.rb
config.autoload_paths += Dir["#{config.root}/app/models/**/"]
console
>Cms::Site.all => []
Now trying to access this model from a sites_controller ( in
backoffice/cms subfolder, action: index ) I get the
load_missing_constant error, aslking for the model to define Site and
not Cms::Site... where am I wrong ? or did I missed any initializing
parameter ?
backoffice/cms/sites_controller.rb
class Backoffice::Cms::SitesController < ApplicationController
def index
@sites = Cms::Site.all
end
LoadError in Backoffice...
2011 Mar 08
0
keep getting an error, "rescue in load_missing_constant': uninitialized constant Paperclip::Glue (NameError)"
...2.3.8
machine os: Ubuntu 10.04 Lucid
I''m having some problems with my rails installation in one of my new
development machines.
I have installed all the gems in my config/environment.rb file.
When I now run either script/console or script/server, I have the
error of " `rescue in load_missing_constant'': uninitialized constant
Paperclip::Glue (NameError)" appear before me. Seeing that, I even ran
"sudo gem install paperclip"
and retried running script/console to no success.
Please help :)
------- Here''s how the error looks like:
root@ct9a:~/projects/myApp# sc...
2007 Aug 01
1
PaginationHelper load_missing_constant error
I just ran into this error after updating rails and the
rspec_on_rails plugin (both are on edge):
/Users/ben/Work/wizzdl/vendor/rails/activerecord/lib/../../
activesupport/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
ActionView::Helpers::PaginationHelper (NameError)
from /Users/ben/Work/wizzdl/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:452:in
`const_missing''
from /Users/ben/Work/wizzdl/vendor/plugins/rsp...
2008 Jun 06
0
load_missing_constant': uninitialized constant ExceptionNoti
I have installed exception notifier plugin in my application & i am
getting the error like this
load_missing_constant'': uninitialized constant ExceptionNotifier
(NameError)
Please solve it
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post...
2009 May 12
1
`load_missing_constant': uninitialized constant Rails::Gener
...nerator < Rails::Generator::NamedBase
def manifest
record do |m|
m.file "media_controller.rb",
"app/controllers/media_controller.rb"
m.file "media.rb", "app/models/media.rb"
end
end
end
[/code]
When I restart my server I get this:
`load_missing_constant'': uninitialized constant Rails::Generator
(NameError)
Thanks,
Clem C
--
Posted via http://www.ruby-forum.com/.
2009 May 12
0
`load_missing_constant': uninitialized constant Rails::Generator (NameError)
...erator < Rails::Generator::NamedBase
def manifest
record do |m|
m.file "media_controller.rb", "app/controllers/media_controller.rb"
m.file "media.rb", "app/models/media.rb"
end
end
end
[/code]
When I restart my server I get this:
`load_missing_constant'': uninitialized constant Rails::Generator (NameError)
Thanks,
Clem C
--
View this message in context: http://www.nabble.com/%60load_missing_constant%27%3A-uninitialized-constant-Rails%3A%3AGenerator-%28NameError%29-tp23495870p23495870.html
Sent from the RubyOnRails Users mailing list arc...
2010 Jul 30
0
`load_missing_constant': uninitialized constant Rails::Railt
...ation/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning:
Gem::Dependency#version_requirements is deprecated and will be removed
on or after August 2010. Use #requirement
/home/Amit/Myworkspace/MyApplication/vendor/rails/activesupport/lib/active_support/dependencies.rb:440:in
`load_missing_constant'': uninitialized constant Rails::Railtie
(NameError)
from
/home/Amit/Myworkspace/MyApplication/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in
`const_missing''
from
/home/Amit/Myworkspace/MyApplication/vendor/gems/rspec-rails-2.0.0.beta.19/lib/rspec-rails.rb:...
2008 Jan 29
4
Setting up release-1.0.1
Hello,
I am unable to get the backgroundrb server to run.
Initially I got:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
BackgrounDRb::MasterProxy (NameError)
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
`const_missing''
from ./script/backgroundrb:41
Then after doing this:
Index: script/backgroundr...
2007 Jan 19
6
Problem w/ routes.rb
I am trying to develop a new webapp using Rails 1.2.1. I am installing
it onto a production web server running Apache w/ fastcgi. The server
already has some older webapps running on it using an older version of
Rails. The apps are not installed in the document root; they each have
their own subdirectory which is a symlink for the apache document root
to the "public" directory of each
2012 Jun 07
2
load_missing_constant: Expected to define class in module
Hi I''m having some weird issues with Rails 3 and classes defined in
modules.
To be more precise I''ve created several files that define classes in the
AppBase module like:
module AppBase
class BackendMenu
[content omitted]
end
end
When a page tries to use the BackendMenu class like AppBase::BackendMenu
I get an error saying "Expected backend_menu.rb to define
2007 Oct 02
3
Note on Rails 2.0 Preview
Make sure you get a relatively current version of rspec or you will get:
/Users/me/rails/ubb/vendor/rails/activerecord/lib/../../activesupport/
lib/active_support/dependencies.rb:263:in `load_missing_constant'':
uninitialized constant ActionView::Helpers::JavaScriptMacrosHelper
(NameError)
Hope this helps someone.
2007 May 24
3
Annoying problem, stack error
...as install haml, but even after removing it there is still a stack
trace.
Here is what I am getting-
sparta at phalanx ff $ rake spec
(in /Users/sparta/Projects/work/idastudios/ff)
..................../usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:249:in
`load_missing_constant'': Expected
/Users/sparta/Projects/work/idastudios/ff/config/../app/models/asset.rb
to define Asset (LoadError)
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
`const_missing''
from /usr/local/lib/ruby/gems/1.8/gem...
2007 Dec 28
3
Converting to Rails 2.0.2
...#39;
from /Users/sxross/rails/tastie_work/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:94:in
`require_or_load''
from /Users/sxross/rails/tastie_work/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:248:in
`load_missing_constant''
from /Users/sxross/rails/tastie_work/vendor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:453:in
`const_missing''
The project uses trunk versions of rspec and rspec_on_rails, along
with current Rails edge (at this point, 8506). After upgradi...
2008 Jan 18
2
Rspec problem in testing RoR application
Hello.
I install gems rspec and rspec_on_rails
I have this Error when try to run Rspec tests on my RoR application:
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
ActionView::Helpers::JavaScriptMacrosHelper (NameError)
And I follow recipes wich are placed in
http://rubyforge.org/pipermail/rspec-devel/2007-September/004032.html
But it make another one Error:
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/depe...
2009 Oct 01
3
mongrel + mysql can't connect in custom mysql install
...ruby).
My dev log is as follows (please help!):
/!\ FAILSAFE /!\ 2009-10-01 11:32:44 -0500
Status: 500 Internal Server Error
uninitialized constant MysqlCompat::MysqlRes
/home/t192zcs/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in
`rescue in load_missing_constant''
/home/t192zcs/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:436:in
`load_missing_constant''
/home/t192zcs/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in
`const_missing_with_dependencies'...
2007 Mar 06
2
Rails 1.2.2 upgrade problem
...ctive_support/dependencies.rb:
202:in `load_file''
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:94:in `require_or_load''
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:248:in `load_missing_constant''
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:452:in `const_missing''
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:464:in `const_missing''
from c:/ruby/lib/...
2007 Dec 05
1
rake error - please help
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?:
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/r...
2008 Nov 18
4
How to read the logs?
...eError (uninitialized constant
Err::Acts::Textiled::ClassMethods::RedCloth) on line #26 of viewer/
show.html.erb:
23:
24: <% else %>
25:
26: <%= @page.body %>
27:
28: <% end %>
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/
active_support/dependencies.rb:276:in `load_missing_constant''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/
active_support/dependencies.rb:468:in `const_missing''
/home/admin/book/vendor/plugins/acts_as_textiled/lib/
acts_as_textiled.rb:24:in `body''
/home/admin/book/app/views/viewer/show.html.erb:26:in
`_run_er...
2008 Mar 05
4
has_many_polymorphs is breaking my spec file
...troy
Now, whenever i run the spec file, it bombs out as soon as it hits a
reference to the Property class (at the start of my main describe block),
saying
"/home/jars/rails/lesson_planner/branches/max/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in
`load_missing_constant'': Expected
/home/jars/rails/lesson_planner/branches/max/app/models/property.rb to
define Property (LoadError)"
If i play around with the labelling system in the console, it seems to work
fine: ie, the above code works ''normally'', but is totally breaking the spec
fi...
2009 Mar 18
2
Cucumber failing with ''uninitialized constant Spec::Ruby''
I''ve just upgraded RSpec to 1.2 on a Rails 2.2.2 app.
rake features fails with the following error:
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/
dependencies.rb:442:in `load_missing_constant'': uninitialized constant
Spec::Ruby (NameError)
from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:77:in `const_missing''
from /Library/Ruby/Gems/1.8/gems/rspec-1.2.0/lib/spec/interop/test.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_...