Homebuyer new Homebuyer 0xb6fe21b0 attributes timeframe nil mobilenumb

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
h = Homebuyer.new
=> #<Homebuyer:0xb6fe21b0 @attributes={"timeframe"=>nil, "mobilenumber"=>nil, "p
urpose"=>nil, "zipcode"=>nil, "query_text"=>nil, "username"=>nil, "want_an_agent
"=>nil, "passwordsalt"=>"", "working_with_agent"=>nil, "average_house_value"=>ni
l, "passwordhash"=>"", "created_at"=>nil}, @new_record=true>
>> h.password= 'test'
=> "test"
>> h.mobilenumber = 89083103381
=> 89083103381
>> h.login = 89083103381
NoMethodError: undefined method `login=' for #<Homebuyer:0xb6fe21b0>
from /var/lib/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.r
b:1860:in `method_missing'
from (irb):4
>> h.username = 89083103381
=> 89083103381
>> h.save
=> true
Property.duplicate_test
[[34, " 11th Ave", "single"],
[29, " 15th Ave", "single"],
[27, " 20th Ave", "single"],
[2, " 2nd Ave", "single"],
[11, " 2nd Ave", "single"],
[10, " 4th Ave", "single"],
[40, " 4th Ave", "single"],
[47, " 4th Ave", "single"],
[58, " 4th Ave", "single"],
[32, " 4th St", "single"],
[45, " 4th St", "single"],
[72, " 4th St", "single"],
[6, " 5th Ave", "single"],
[61, " 5th Ave", "single"],
[23, " 5th St", "single"],
[41, " 5th St", "single"],
[42, " 5th St", "single"],
[62, " 5th St", "single"],
[63, " 5th St", "single"],
[78, " 5th St", "single"],
[79, " 5th St", "single"],
[21, " 6th St", "single"],
[67, " 6th St", "single"],
[68, " 6th St", "single"],
[36, " 8th Ave", "single"],
[76, " 8th Ave", "single"],
[80, " 8th Ave", "single"],
[4, " Camden Ave", "single"],
[7, " Chittenden Ave", "single"],
[8, " Chittenden Ave", "single"],
[85, " Chittenden Ave", "single"],
[48, " Cleveland Ave", "single"],
...
[99, "1137 michigan ave", "single"],
[89, "1141 summit st", "single"],
[87, "12 clark pl", "single"],
[86, "1383 summit st", "single"],
[96, "148 price ave", "single"],
[97, "266 e 2nd ave", "single"],
[100, "321 e 17th ave", "single"],
[88, "34 w 4th ave", "single"],
[90, "639 e 2nd ave", "single"],
[92, "67 e 5th ave", "single"],
[94, "67 e 5th ave", "single"],
[101, "67 E 5th Ave #1", "single"],
[91, "69 e 5th ave", "single"],
[95, "69 e 5th ave", "single"],
[93, "71 e 5th ave", "single"],
[98, "865 e 5th ave", "single"]]
s = Subscription.create(:property_id => 93, :homebuyer_id => 1)
=> #<Subscription:0xb72624bc @errors=#<ActiveRecord::Errors:0xb725fe9c @errors={}, @base=#<Subscription:0xb72624bc ...>>, @attributes={"id"=>3, "property_id"=>93, "notify_email"=>nil, "homebuyer_id"=>1, "notify_sms"=>nil, "notify_rss"=>nil, "created_at"=>Thu Nov 29 10:19:29 +0600 2007}, @new_record=false>
>> s = Subscription.create(:property_id => 95, :homebuyer_id => 1)
=> #<Subscription:0xb7257a1c @errors=#<ActiveRecord::Errors:0xb7256d88 @errors={}, @base=#<Subscription:0xb7257a1c ...>>, @attributes={"id"=>4, "property_id"=>95, "notify_email"=>nil, "homebuyer_id"=>1, "notify_sms"=>nil, "notify_rss"=>nil, "created_at"=>Thu Nov 29 10:19:33 +0600 2007}, @new_record=false>
>> s = Subscription.create(:property_id => 97, :homebuyer_id => 1)
=> #<Subscription:0xb7250d0c @errors=#<ActiveRecord::Errors:0xb7250078 @errors={}, @base=#<Subscription:0xb7250d0c ...>>, @attributes={"id"=>5, "property_id"=>97, "notify_email"=>nil, "homebuyer_id"=>1, "notify_sms"=>nil, "notify_rss"=>nil, "created_at"=>Thu Nov 29 10:19:40 +0600 2007}, @new_record=false>