Displaying 1 result from an estimated 1 matches for "find_by_bet_id".
2011 Apr 27
2
Can not create model instance via params on specific model but can on others....
...ugly):
(rdb:1) bpt = PaymentTransaction.new
#<PaymentTransaction id: nil, purchase_id: nil, action: nil, amount: nil,
success: nil, authorization: nil, message: nil, params: nil, created_at:
nil, updated_at: nil>
(rdb:1) bpt.purchase_id = 3
3
(rdb:1) bpt.save
true
(rdb:1) PaymentTransaction.find_by_bet_id(3)
#<PaymentTransaction id: 3, purchase_id: 3, action: nil, amount: nil,
success: nil, authorization: nil, message: nil, params: nil, created_at:
"2011-04-27 18:22:46", updated_at: "2011-04-27 18:22:46">
And this works:
(rdb:1) Team
Team(id: integer, sport_id: integer,...