search for: configure_dependency_for_has_many

Displaying 4 results from an estimated 4 matches for "configure_dependency_for_has_many".

2008 May 28
2
functional testing joins table problem
...have post :destroy, :id => 5 which tosses an error... test_destroy(FacilitiesControllerTest): NameError: uninitialized constant Facility::FacilitiesService /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:477:in `const_missing'' (eval):1:in `configure_dependency_for_has_many'' Is this because the Model for the join table should have been, FacilitiesService ? Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, sen...
2008 Apr 04
1
Urgent help needed! "uninitialized constant" error.
I need a hint on what could be causing the following error message: NameError in Project areasController#destroy uninitialized constant ProjectArea::KeyAspect D:/Ruby/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:477:in `const_missing'' (eval):1:in `configure_dependency_for_has_many'' #{RAILS_ROOT}/app/controllers/project_areas_controller.rb:129:in `destroy'' script\server:3 -e:2:in `load'' -e:2 Many thanks people Attachments: http://www.ruby-forum.com/attachment/1688/project_areas_controller.rb -- Posted via http://www.ruby-forum.com/. --~--~-----...
2010 Mar 24
1
How to stub a has_many relationship in Rails 2.3.5
...destroy the Person because the stubbed Aliases return an array and it appears it is expecting some sort of association object that responds to owner_quoted_id Like I said, we didn''t have any problems until upgrading from Rails 2.3.4 to Rails 2.3.5 In case your interested, it is the configure_dependency_for_has_many method that calls: "#{reflection.primary_key_name} = \#{record.#{reflection.name}.send(:owner_quoted_id)}" Any help would be greatly appreciated! Ben Fyvie -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspe...
2006 Jul 31
0
Issues with has_many, belongs_to and dependency settings
...ing'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc ies.rb:131:in `const_missing'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc ies.rb:133:in `const_missing'' from (eval):1:in `configure_dependency_for_has_many'' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/callbacks. rb:337:in `callback'' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/callbacks. rb:330:in `callback'' from /usr/lib/ruby/gems/1.8/gems/activ...