similar to: const_missing error of has_many through association

Displaying 20 results from an estimated 10000 matches similar to: "const_missing error of has_many through association"

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 Nov 14
1
`const_missing': uninitialized constant CGI::Session (NameEr
Hi all... I am facing the following error "`const_missing'': uninitialized constant CGI::Session (NameError)" While running "script/generate controller abc" Having any idea???? Thanks all..... -- Posted via http://www.ruby-forum.com/.
2010 Jun 21
1
in `const_missing': uninitialized constant CGI::Session
Hi, I have an application which previously running on rails 2.2.2. I just upgraded the rails to 2.3.8. After that I tried to start the server I got the following error:- "/usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in `const_missing'': uninitialized constant CGI::Session (NameError" Anyone have any idea How to solve this
2006 Jan 30
0
const_missing: uninitialized constant Test when running unit tests
I have a set of tests that run without issue on one machine. On another machine when running the same tests we get: /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'': uninitialized constant Test (NameError) from ./test/unit/../test_helper.rb:5 from test/unit/entity_test.rb:1:in `require'' from
2008 Mar 14
3
`const_missing'': uninitialized constant Spec::Rails
Hi! I''m experiencing such error while running simple model rspec just to make sure everything is working. $ script/spec spec/models/site_user_spec.rb /var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'': uninitialized constant Spec::Rails (NameError) from
2005 Mar 30
0
Help - dependencies.rb - `const_missing': uninitialized constant
I''m trying to get this has_and_belongs_to_many join to work (re: my post from yesterday). I''m getting an error I can''t seem to get by. Help? I now have the following tables: ORGANISATIONS: id (primary key) name REPRESENTATIVES id (primary key) name ORGANISATIONS_REPRESENTATIVES organisation_id representative_id My models are: class Organisation
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 31
2
The error occured while evaluating nil.gsub!
#{RAILS_ROOT}/app/controllers/start_controller.rb:13:in `create'' --- class StartController < ApplicationController def create #------------Remove Tag--------------------------- @name = params[:name] @file = params[:filepath] @file = @file.gsub!(/^.*(\\|\/)/, '''') # replace html tags with blank post = Post.save(@params["removetag"]) end end --
2006 Jul 26
3
Polymorphic Association with Single Table Inheritance?
Hello, is it possible to setup a model/table schema like this: Groupable --> Membership <-- Group ^ ^ | | User UserGroup I tried the following but failed: Groupable (table with ''type'' column) has_many :memberships, :as => :groupable has_many :groups, :through => :memberships
2006 May 27
2
NameError / active_support/dependencies
hi everyone in my dev machine, everything works flawlessly now when i uploaded my website on the server, it cannot acces User model anymore. all other pages work by the way. when i try to access User on console or by web, it shows: NameError in UsersController#signup uninitialized constant User /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
2009 Oct 13
2
Single Table Inheritance (STI) Broken: NameError
Some how I''m getting NameError: uninitialized constant when accessing a child models that inherits form the parent model. However, if I access the parent model first, then the child model is resolved. What am I doing wrong? My steps are below... Thanks, Francis. > ./script/generate model Blah type:string class CreateBlahs < ActiveRecord::Migration def self.up create_table
2007 Aug 15
2
has_many :through ... What am I missing?
class Ladder < ActiveRecord::Base has_many :players has_many :users, :through => :players end class Player < ActiveRecord::Base belongs_to :users belongs_to :ladders end class User < ActiveRecord::Base has_many :players has_many :ladders, :through => :players end When I try the following code (on the console) I get an error: @ladder = Ladder.find(1) @ladder.users I
2007 Oct 04
0
Module + Constant Issue
I ran into the following problem in my application when I went from my dev environment to my staging environment. Modules and classes that were previously autoloaded just fine in dev ended up with a strange error in staging: NameError: uninitialized constant Rails::Initializer::... Weird. Well, I managed to reproduce it, and here is the procedure. I''m wondering if the approach
2006 Mar 27
2
:through and STI
Hi, I''m trying to use :through and STI using the trunk version of Rails, but I get the following error see bottom of this msg[1] here are my classes. class Player < ActiveRecord::Base end class Ladder < ActiveRecord::Base has_many :subscriptions has_many :players, :through => :subscriptions end class SingleLadder < Ladder end class Subscription <
2006 May 03
0
const_missing & undefined method problems upgrading to Rails 1.1.2
Finally getting around to upgrading our application to Rails 1.1.2. Of course, nothing runs correctly after the upgrade. So far two major problems, perhaps related. Any help would be greatly appreciated. 1. We''re getting const_missing errors. Specifically when trying to use class constants in a custom helper method, being called from a layout template. The class constants were for
2005 Nov 30
0
uninitialized constant Base (NameError) trying to use ActiveLdap
Hi group I''m trying to hook up my simple app to Active Directory. I''m following instructions posted on the website. Mainly http://wiki.rubyonrails.com/rails/pages/HowtoAuthenticateViaLdap and now also http://wiki.rubyonrails.com/rails/pages/ActiveLDAP. The two instructions seem to differ a little on how to configure (environment.rb). Both instructions break my app with an
2006 Apr 03
6
getting fcgi to work
can some one help me with my install? i''m having a touch time getting fcgi to play right with apache. i ran "gem install fcgi" and this is the output i get: Attempting local installation of ''fcgi'' Local gem file not found: fcgi*.gem Attempting remote installation of ''fcgi'' Updating Gem source index for: http://gems.rubyforge.org Building
2006 Jul 19
3
Rails & Mongrel & Lighttpd > NameError in Production
hallo there, i got a problem with switching from development- to production-mode in my rails project. in development everything is working fine, but in production i keep on getting a NameError... [quote] NameError in Appointments/admin/appointment categoryController#list uninitialized constant Appointments::Admin::AppointmentCategory
2007 Jan 22
1
Strange behavior
Ok two things that bug me 1) http://backgroundrb.devjavu.com/projects/backgroundrb/ticket/48 i thought i''ll just post ticket link - but well - it''s strange 2) when i switch base class from RailsBase to Base i can''t access MiddleMan - i get error NameError: uninitialized constant MiddleMan from (drbunix:///tmp/backgroundrbunix_localhost_2999)
2006 Mar 28
0
Ruby 1.8.4 broke my Rails 1.1
I''ve been running edge_rails on ruby 1.8.2 for a while pretty successfully. Today, I decided to unfreeze_rails, install the new gem for 1.1 and then while I was at it, upgrade to Ruby 1.8.4. I did the whole configure, make, make test, make install. When I fired up rails, I started getting all sorts of errors: