search for: contact_state

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

Did you mean: contact_status
2006 Aug 11
5
Unit tests - NilClass problem
...is with your real tests. def test_create test_creation_of :model => Customer, :record => @customer, :fixture => @first, :attributes => [:id, :name, :contact_firstname, :contact_lastname, :contact_address, :contact_country, :contact_state, :contact_email, :contact_phone, :activationcode] end end and when trying to run it I get: ------------ Loaded suite customer_test Started F Finished in 0.731 seconds. 1) Failure: test_create(CustomerTest) [./../test_helper.rb:31:in `test_creation_of'' customer_test.rb:13:i...
2007 Jan 15
1
Using One Lookup Table for Multiple Model Properties
I have a model that has two properties that both come from the same database table. Let''s say I have a "Lead" model. This Lead has both a contact "State" (as in Colorado, Arkansas, etc.) and a "Property State" where the house he''s looking to refinance is located. Both of these should obviously be objects of the type "state".