【发布时间】:2011-07-12 11:16:05
【问题描述】:
我正在学习哈姆尔。
我的视图文件是这样的:
show.html.haml:
.content
= render 'meeting_info', :locals => { :info => @info }
和_meeting_info.html.haml:
.detail
%table
%caption
Meeting Informations of
= info["meeting_name"]
...
当我尝试运行它时,我收到了 undefined local variable or method 'info' 错误。
【问题讨论】:
标签: ruby-on-rails haml partial-views