search for: claim_admin_controller

Displaying 2 results from an estimated 2 matches for "claim_admin_controller".

2006 Feb 23
3
has_many reference
...cord/associations.rb:753:in `new'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:753:in `endorsees'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:749:in `endorsees'' #{RAILS_ROOT}/app/controllers/claim_admin_controller.rb:50:in `create'' #{RAILS_ROOT}/app/controllers/claim_admin_controller.rb:47:in `each'' #{RAILS_ROOT}/app/controllers/claim_admin_controller.rb:47:in `create'' #{RAILS_ROOT}/app/controllers/claim_admin_controller.rb:32:in `each'' #{RAILS_ROOT}/app/controllers/clai...
2006 Feb 26
4
Creating objects with has_many :through relationship
Three tables: users: id clients: id admin_contacts: user_id, client_id class Client has_many :admin_contacts has_many :contacts, :through => :admin_contacts, :foreign_key => :user_id, :class_name => ''User'' end I added the :contacts for ease of use of grabbing the user objects associated with the admin_contact. This all works great, I can grab the Users that