<%= 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
为什么会这样:<%= vote.song.name %> 得到一个未定义的方法错误(名称)?