【发布时间】:2011-10-10 02:49:02
【问题描述】:
例如,如果我在mongo ruby驱动中使用rename方法,我可以检查code here
当我使用 map(&:attributes) 时到底发生了什么? 我认为这意味着 tags.map(&:attributes.to_proc).join(''),但我不确定为什么我会收到“未定义的方法 `each_pair' for Arrayxxxxx”错误:
TableA.create(TableB.all.map(&:attributes))
任何见解将不胜感激
【问题讨论】:
-
不是重复的,但感谢您的指点,我会检查所有这些链接。我只是想了解为什么'each_pair'..
标签: ruby-on-rails ruby copy