similar to: Urgent help needed! "uninitialized constant" error.

Displaying 20 results from an estimated 350 matches similar to: "Urgent help needed! "uninitialized constant" error."

2008 May 28
2
functional testing joins table problem
I have models/controllers Class Facility has_many :facilities_services, :dependent => :delete_all Class Service has_many :facilities_services, :dependent => :delete_all Class FacilitiesServices belongs_to :facility belongs_to :service so in my test/functional/facilities_controller_test.rb, I have post :destroy, :id => 5 which tosses an error...
2010 Mar 24
1
How to stub a has_many relationship in Rails 2.3.5
We have a test that has been working find until we upgraded to rails 2.3.5. I''m not too familiar with mocks/stubs so maybe there is an easy solution. Here is a simple example of our scenario. Class Person < ActiveRecord::Base has_many :aliases, :dependent => :nullify before_destroy :mark_aliases_as_deleted def mark_aliases_as_deleted self.aliases.each do
2006 Jul 31
0
Issues with has_many, belongs_to and dependency settings
I have 2 models SmsAddress & OutboundSmsAtom SmsAddress { has_many :other_objects, :dependency => :nullify } OutboundSmsAtom { #note this object also "belongs_to" other objects if that matters belongs_to :this_object } Whenever I try to destroy an object of type ThisObject, which at the time has 0 "children" OtherObjects I get the following type of
2006 Jul 07
1
uninitialized constant MiddleMan
I just updated backgroundrb to the latest version, and now I get this: uninitialized constant MiddleMan /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:123:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:131:in `const_missing''
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 Oct 13
1
uninitialized constant LockException
When I try to search a locked index, I get the exception uninitialized constant LockException: /usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/ferret-0.10.11/lib/ferret/index.rb:383:in `[]'' /usr/local/ruby-1.8.5/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/ferret-0.10.11/lib/ferret/index.rb:382:in `[]'' -- Posted
2006 Jan 13
2
uninitialized constant Ferret
I get this error message from the following code: require ''rubygems'' require ''ferret'' include Ferret index = Index::Index.new(:path => ''/tmp/index'') index << {:title => "Programming Ruby", :content => "blah blah blah"} index << {:title => "Programming Ruby", :content => "yada yada
2007 Dec 21
0
rake test:plugins gives uninitialized constant RAILS_ROOT
Hello, Just upgraded to the the latest backgroundRb.I am getting an error when i run the task "rake test:plugin". Any idea why I am getting this? Here is the error message: /usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "vendor/plugins/backgroundrb/test/master_worker_test.rb"
2006 Aug 07
0
RMagick - uninitialized constant Enum
SO - I wrote "require ''RMagick''" at the top of my class and got this error: uninitialized constant Enum (full error: http://ror2.notdotnet.net/hello) I googled for the problem and found this blog: http://blog.pomozov.info/posts/adventure-with-rmagick-and-mongrel.html I talked with the support on my webhost...and making a long story short my setup now looks like
2006 Aug 16
0
`const_missing'': uninitialized ..
bad night ! my db model is like: person has many clients, and clients has many infoattributes so in my computer with script/console I can do aPerson.clients.first.rooms => and it is ok BUT in the new server which use rails 1.1.6 I have a `const_missing'': uninitialized constant Infoattribute Any idea ? arnaud
2006 Aug 17
0
`const_missing'': uninitialized constant
Hi all, still the same error, when accessing my model childs on the site5 server ....(Person.infogroups.first.infoattributes, (a Person has_many infogroup which has_many info_attribute)) I double check my config and the server and it is exactly the same (except for rubygem which is for me 0.8.11). ==>>ERROR
2006 Jul 11
0
"uninitialized constant Enum" in RoR app under Apache
Hi, all. I am trying to manage to run my application under Apache+Mongrel but i am stucked with very difficult (for me) problem. The problem is: RMagick stuff works perfectly under WebRick. My environment is Ubuntu 5.10, ImageMagick 6.2.8, latest version of mongrel, rails, rmagick... Apache 2.2 But if I start the same application under Mongrel I get following error NameError (uninitialized
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
2006 Jun 18
4
uninitialized constant Datetime
I am building an application and I have generated the scaffold for a product. In the list method I include something like my_date = Datetime.now and the result I get from the webrick is an error uninitialized constant Datetime Do I have to add a line with a require? I am new at ruby on rails thanks in advance -- Posted via http://www.ruby-forum.com/.
2006 Jun 25
0
Uninitialized Constants in Scaffolds
I''ve just got the solution to a problem I''d been having. It looks like it''s quite common, so here goes: When creating a scaffold page (using <tt>script/generate scaffold ...</tt>) if you look at the pages it makes (through the server, http:\\127.0.0.1:3000...) all pages work except LIST, which complains of Uninitialized Constant [your model name]
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 May 07
1
file_column problem - uninitialized constant Magick
Hi, I''m on Windows and getting the following error while trying to use file_column with RMagick, uninitialized constant Magick C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'' #{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in `file_column'' I installed file_column by
2006 May 15
0
uninitialized method ''init'' for MySql::Class
I''ve been going through the Ruby on Rails tutorial at OnLamp.com on my Debian machine, and I ran into the following error after creating a ''recipes'' table in my ''cookbook'' database: NoMethodError in RecipeController#new uninitialized method ''init'' for MySql::Class RAILS_ROOT: /var/rails/cookbook/public/../config/.. Any ideas on how
2006 May 25
0
uninitialized constant
I have tried to create and use my own Exception class, AmbigouosPlaceException. I can''t seem to use my exception though, as I get the following FRUSTRATING error... ----- Error ----- uninitialized constant AmbiguousPlaceException C:/app/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:89:in `const_missing''