search for: otiph

Displaying 3 results from an estimated 3 matches for "otiph".

Did you mean: otih
2006 Mar 01
1
maddening intermittent failures in unit tests with "working" code
...id` int(11) NOT NULL auto_increment, [...] PRIMARY KEY (`id`), ) ENGINE=InnoDB DEFAULT CHARSET=latin1; users_zimps.yml --------------- alice_buys_chris_bday_qty1: zimp_id: 1 user_id: 5 reserved: 1 alice_buys_chris_bday_qty2: zimp_id: 3 user_id: 5 reserved: 1 users.yml --------- otipher: id: 1 bunky: id: 2 email_bob: id: 3 email_sally: id: 4 alice: id: 5 zimps.yml --------- otipher_bday_codebook: id: 1 otipher_bday_headfirst: id: 2 otipher_bday_cookbook: id: 3 test_helper.rb -------------- ENV["RAILS_ENV"] = "test"...
2006 Feb 03
1
nested has_many associations
My question is whether the rails helper methods for handling associations can be nested (see examples below). I suspect not as currently I''m getting "unknown method" if I try and use two associations in one call. The essence of the code is class User << ActiveRecord::Base has_many :items class Items << ActiveRecord::Base has_many :reservations belongs_to
2006 Feb 26
1
noob question on deleting from join tables
When I have a habtm association between two models (User & List), implemented thru a join table users_lists, there are a variety of ways to "delete" associations between specific User<->List combinations. ActiveRecord lists delete, clear etc. However, these methods all operate by setting foreign keys in the join table to nil and do not remove rows from the join table.