我有两张桌子:bids和credit_operations。在我的模型中,我有;
出价.rb: has_one :credit_operation
信用操作.rb belongs_to :bid
在 credit_operation 表中我有bid_id列。如何访问credit_operations表中的某些属性bids_controller.rb?
我有两张桌子:bids和credit_operations。在我的模型中,我有;
出价.rb: has_one :credit_operation
信用操作.rb belongs_to :bid
在 credit_operation 表中我有bid_id列。如何访问credit_operations表中的某些属性bids_controller.rb?