摘要: ActiveRecord有一个composed_of()方法用来声明组件关系,如:Java代码 class Person < ActiveRecord::Base composed_of :address, :class_name => "Address", :mapping => [%w(address_street street), %w(address_city city)... 阅读全文
posted @ 2010-04-08 17:58 麦飞 阅读(539) 评论(0) 推荐(0) 编辑