<%= debug(vote.song) %>
得出这个:
--- !ruby/object:Song
attributes:
id: 1
name: Immigrant Song
code: aiusbaina
album: Led Zeppelin III
created_at: 2012-09-08 10:02:51.654625000 Z
updated_at: 2012-09-08 10:02:51.654625000 Z
为什么:&lt;%= vote.song.name%&gt;得到一个未定义的方法错误(名称)?