search for: payable_type

Displaying 1 result from an estimated 1 matches for "payable_type".

2008 May 25
2
record will absolutely not save! so weird, please help.
...ble => Student.find(608)) => #<Payment id: nil, school_id: nil, payment_reason_id: 1, payment_method_id: 1, date: "2008-05-25", amount: #<BigDecimal: 46958f8,''0.5E1'',4(8)>, created_at: nil, updated_at: nil, invoice_id: nil, creator: nil, check_number: nil, payable_type: "Student", payable_id: 608> >> p.valid? => false >> p.school_id = 1 # school_id is attr_protected => 1 >> p.valid? => true >> p.save => nil >> p.save! => nil >> p.save_with_validation => true Why is save returning nil? Why is save...