我正在学习哈姆尔.
我的视图文件如下:
show.html.haml:
.content
= render 'meeting_info', :locals => { :info => @info }
Run Code Online (Sandbox Code Playgroud)
和_meeting_info.html.haml:
.detail
%table
%caption
Meeting Informations of
= info["meeting_name"]
...
Run Code Online (Sandbox Code Playgroud)
当我尝试运行时,我收到了一个undefined local variable or method 'info'错误.