我有两个模型:
class Song < ActiveRecord::Base
attr_accessible :title, :singer, :year, :production
end
和:
class SongsCopy < ActiveRecord::Base
attr_accessible :title, :singer, :year
end
创建时A(Song)
复制属性的最简单方法是什么,记住没有属性?B(SongsCopy)
B
SongsCopy
:production