similar to: Help - dependencies.rb - `const_missing': uninitialized constant

Displaying 20 results from an estimated 400 matches similar to: "Help - dependencies.rb - `const_missing': uninitialized constant"

2005 Jun 13
3
validations not working with collection population droplists
I have an ADD form with foreign key field values selectable via select list ( collection_select (...)). When I add validates_presence_of :someotherfield to my model for error trapping, I get the following error for each droplist: NoMethodError in Reviews#create_curriculum Showing /reviews/_form.rhtml where line #16 raised: undefined method `inject'' for nil:NilClass Extracted source
2006 Mar 20
2
AHHHhhhhh... has_and_belongs_to_many, that is going on?
I don''t have a class by the name of "ReviewersScoreCard", yet my many to many configuration looks as follows. And, these errors while running some simple test with ./script/console is giving me a headache: ./script/console Loading development environment. >> r = Reviewer.find_first => #<Reviewer:0x19d0a48 @attributes={"id"=>"1",
2005 Mar 07
2
Problem with Rails 0.10.1
I''ve got a view template that contains this: <%= render_component(:controller => ''reviews'', :action => ''show'', :params => { ''id'' => review.id }) %> In Rails 0.10.0 this worked just fine. After I upgraded to 0.10.1 I get this error: ActiveRecord::RecordNotFound in
2005 Sep 06
6
strange behavior of acts_as_taggable
I was testing my models with this new library and I got: >> s.tag "warp" ActiveRecord::StatementInvalid: ERROR: inserción o actualización en la tabla «tags_stories» viola la llave foránea «tags_stories_story_id_fkey» DETAIL: La llave (story_id)=(8) no está presente en la tabla «stories». : INSERT INTO tags_stories ("tag_id", "story_id") VALUES
2007 Jul 17
5
habtm confusion
Hello friends! I am trying to make a database that will have a group of people set to committees, and a person can be in multiple committees, and a committee obviously has multiple people. The people are senators at my university. These are my current models: senator.rb: -- class Senator < ActiveRecord::Base validates_presence_of :first_name, :last_name, :floor has_and_belongs_to_many
2005 Jul 05
2
Salted hash login generator (verification problem?)
Hi all, I hope someone can help with what is probably a simple newb installation mistake on my part. I''m having a couple of problems with the salted hash login generator. I installed it following the quickstart guide, and the unit tests work like a charm. There are two errors and a failure on the function tests, though; the verified field seems to be involved in at least one of
2005 Jun 22
0
HTTP_HOST in rails
Hi All, Rails 0.12.1 doesn''t seem to be able to handle requests that don''t provide the HTTP_HOST variable in my environment (apache2/fcgi). This isn''t really a huge deal in practice, but it points to an actual oversight in the code, or perhaps in my config. Thoughts? ActionView::TemplateError (undefined method `+'' for nil:NilClass) on line #1 of
2006 Apr 11
0
habtm and :uniq
Hi I wonder what the state of this ticket is: http://dev.rubyonrails.org/ticket/2019 Does anyone have information regarding whether there are plans to fix this behaviour? It seems strange to me to force uniqueness in Ruby (i.e. application code) but not in the database. For example, in activerecord/lib/active_record/associations/ has_and_belongs_to_many_association.rb there is a line
2005 Jul 29
3
More issues with Rails Book Cart tutorial.
I am presently trying to get the cart section (chapter 8.) working and after following the instructions as carefully as I can determine I am nonetheless getting the following errors: URL=http://localhost:3000/store/add_to_cart/10 NameError in Store#add_to_cart undefined local variable or method `parms'' for #<StoreController:0x376ee60>
2010 Oct 11
8
Nooby Stuck - "has_and_belongs_to_many" relationship
trying to set up a "has_and_belongs_to_many" relationship would very much appreciate the help, not sure what im doing wrong at all. Scheme.rb class Scheme < ActiveRecord::Base validates :schemename, :presence => true belongs_to :user has_many :levels, :dependent => :destroy has_and_belongs_to_many :works end Work.rb class Work < ActiveRecord::Base
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 Jun 19
2
const_missing error of has_many through association
Hi, I am new to ruby on rails. I am building an association join model and encountered the following error. Does anyone know what am I missing? > NameError in StartController#home > >d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'': uninitialized constant Membership I have the following tables relationships Users
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
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
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
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
2007 Jul 17
2
Plugin Problems: const_missing: uninitialized constant Rails::Initializer::CalendarHelper
I''m receiving this error when I try to start Mongrel on my local machine. I''ve checked my Rails, Rake, and Gem versions, as well as all of the other gems I''m using. http://pastie.caboo.se/79503 The situation is that I simply started an empty Rails app and generated an empty plugin. I added the plugin into the ActionView::Base class in init.rb and really only added one
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