我在 Rails 3 模型中有一个简单的问题:以下是我拥有的模型:
class Order < ActiveRecord::Base
attr_accessible :customer :date #blahblah..
has_many :items
accepts_nested_attributes_for :items
class Item < ActiveRecord::Base
belongs_to :order
那么我怎样才能@item.customer
在我的程序中达到呢?
谢谢