similar to: uninitialized constant (NameError)

Displaying 20 results from an estimated 2000 matches similar to: "uninitialized constant (NameError)"

2006 Mar 27
1
accessing models from lib
Anyone tried to access the model class from a module in the lib directory? How should the require line look like? I have class called A::Folder in app/models/a/folder.rb, and I was trying to include it in app/lib/common.rb by adding require "a/folder" But I am getting the following error: NameError (uninitialized constant Folder):
2005 Dec 28
1
Windows "Lost connection to MySQL server during query"
With previous versions of active record (prior to version 1.13.2), one could simply comment out the "require ''active_record/vendor/mysql411''" line in mysql_adapter.rb to fix this problem when you weren''t (and/or couldn''t) use the native mysql bindings. However, this line no longer exists, and I''m stuck on getting any sort of applicatino
2006 Feb 14
0
Help with Eager Association
I''ve gotten eager associations to work before, but for some reason this isn''t working out for me this time. I''ve been scratching my head but can''t quite figure out the nuances of what works and what doesn''t work. I''ve got 3 models: profile, widget_configuration and widgets profile.rb -- has_many :widget_configurations
2006 May 02
3
''NameError: uninitialized constant <MyEntity>'' in console
When I create a new model entity, and try to access it from the Rails console I get the error: >> b = Bar.new(:name => ''Some Bar'') NameError: uninitialized constant Bar from (irb):1 from :0 (My model class is called Bar, and is in file app/models/bar.rb) So, I try to load the model class file, and I run into a more frigtening error: >> load
2006 Nov 06
1
NameError uninitialized constant Ferret::Index::FieldInfos
Hi Everyone, I''ve a RoR application. I am trying to build full text search capability into it. I installed Ferret. After that I installed the act_as_ferret plugin. I''ve also put the acts_as_ferret inside the <model>.rb file . I''m using the find_by_contents to get the search results. I''m getting the following error. I''ve no clue and I
2006 Feb 07
1
AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
I copied (and modified) this code from AWDWR: def rescue_action_in_public(exception) case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction render :template=>''/error'', :layout=>''application'', :status=>''404 Not Found'' else render :template=>''/error'',
2009 Apr 15
1
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
I''m on debian etch w/ ruby1.8, activesupport-2.3.2, getting this on the first line of code which is require ''active_support'' : /var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require''
2009 Mar 18
1
uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3
Hi guys, I''ve just installed Rails 2.3 and I am using the clearance plugin with cucumber features. When I run rake features I get this "uninitialized constant ActionController::AbstractRequest (NameError)" error from webrat trying to call AbstractRequest which now is called Request (I think). My question is : Is there any way to alias the old name to have backwards
2011 May 17
1
uninitialized constant Delayed::Job (NameError)
hi I am implementing delayed_job in my rails app. *my code is:* file name is: my_worker.rb require "delayed_job" require "rubygems" class MyClass def perform while true do puts "I am in My class!!!" sleep 2 end end end Delayed::Job.enqueue( MyClass.new ) #m.perform when i am executing this(ruby my_worker.rb ) file it gives me error
2010 Sep 21
1
NameError: uninitialized constant Dispatch
In the "Rails Way" book, following an example, I came to a point where I had to run: Dispatch.dispatch But, I get the following: irb(main):003:0> Dispatch.dispatch NameError: uninitialized constant Dispatch from (irb):3 I want to mention that I''m using "Rails 3.0.0", and the book seems to use an older version of Rails, is that the issue? What is the
2006 Jul 24
0
Error: NameError (uninitialized constant Mysql)
Hi I am getting this error on my localhost in a project I started work on. It was working properly until sometime back. I am not what broke this because I had to do some copy paste from some other project to make it deploy on site5. NameError (uninitialized constant Mysql): d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing''
2006 Jul 25
0
RESOLVED: Re: NameError (uninitialized constant Mysql)
Hi all I had asked the group about the error: NameError (uninitialized constant Mysql) appearing on the localhost since last few days. I was using Webrick for testing. I installed RubyForApache module, which installed mysql.so along with that. It wasnt successful even after following documentation/tutorials word-by-word. Anyway, the bottom line is : I uninstalled RubyForApache and
2008 May 19
0
uninitialized constant BackgrounDRb::MetaWorker (NameError)
Hi All, I am using backgroundrb to receive emails in my rails app. But I am unable to start the Backgroundrb server. After doing this: $ ./script/backgroundrb/start I am getting following error: ??????????????????????????????? vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant
2009 Jan 23
0
NameError: uninitialized constant I18n
Just installed the plugin as described on the link below. http://factore.ca/on-the-floor/11-introducing-has-foreign-language-an-easy-database-internationalization-plugin If i fire up my console and then: I18n.default_locale = "en" i got the error message: NameError: uninitialized constant I18n from
2008 Feb 09
0
Error const_missing': uninitialized constant Rails::Plugin::Err (NameError)
I have installed some plug ins like will_paginate and classic_pagination. After this I have came across this error /var/lib/gems/1.8/gems/activesupport-2.0.1/lib/active_support/ dependencies.rb:478:in `const_missing'': uninitialized constant Rails::Plugin::Err (NameError) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2009 May 04
0
uninitialized constant Article::Text (NameError)
uninitialized constant Article::Text (NameError) when i exute the program i am getting this err can any one give me the solution for this
2009 May 12
0
`load_missing_constant': uninitialized constant Rails::Generator (NameError)
Hello, I''m probably missing something pretty basic here as a rails newbie but I''m trying to write a plugin and I am trying to get my generator to work. I am trying to call the manifest method in my vendor/plugins/media_module/generators/media_module_generator.rb from my vendor/plugins/media_module/init.rb. here''s the code in vendor/plugins/media_module/init.rb:
2010 Dec 06
0
Rspec: `should': uninitialized constant RSpec::Expectations (NameError)
Hi all, tried posting this to rspec group but w/o success so hope someone on this list might be able to help me out as am kind of stuck: Can anyone tell me why I am getting this error trying to ''rake spec'': ''kernel.rb:27:in `should'': uninitialized constant RSpec::Expectations (NameError)''. Can''t seem to find a useful reference online to
2012 Feb 18
0
Rails NameError : uninitialized constant RelationshipsController
I am trying to run a test of my app buy my relationships_controller_spec.rb file won''t run. Here''s the error I get: Exception encountered: #<NameError: uninitialized constant RelationshipsController> Here''s the code for my relationships_controller_spec.rb file: require ''spec_helper'' describe RelationshipsController do describe "access
2007 Aug 10
2
uninitialized constant MiniMagic (NameError)
Hi, Mini-Magick breaking. I have installed mini-magick gem. Here is my sample program require ''rubygems'' gem ''mini_magick'' include minimagick image = MiniMagick::Image.from_file(''./fun.jpg'') image.resize "100x100" image.write(''./funthumb.jpg'') Output: test.rb:3: undefined local variable or method