Displaying 1 result from an estimated 1 matches for "paymenttransaction".
2011 Apr 27
2
Can not create model instance via params on specific model but can on others....
Anyone have an idea on this? Got a weird situation where on a specific model
I can not create an instance using params, yet it works fine on other
models. The model which does not work is a stock model, there is no logic in
it. Ruby 1.8.7/Rails 3.0.5.
Does not work:
(rdb:1) PaymentTransaction.create(:purchase_id => 3)
#<PaymentTransaction id: 2, purchase_id: nil, action: nil, amount: nil,
success: nil, authorization: nil, message: nil, params: nil, created_at:
"2011-04-27 18:18:59", updated_at: "2011-04-27 18:18:59">
But this works (but is ugly):
(rdb:1) b...