【发布时间】:2011-07-06 23:11:38
【问题描述】:
album/show.html.haml
#comment_list= render :partial => 'shared/comments', :locals => { :commentable => @album }
shared/_comments.html.haml
#comments
= commentable.comments.each do |comment|
= comment.content
display
Hello #<Comment:0x7f668f037710>
为什么显示地址?怎么去掉?
【问题讨论】:
-
+1 表示“为什么显示地址?”
标签: ruby-on-rails-3 haml