相关疑难解决方法(0)

在Haml中与当地人一起渲染?

我正在学习哈姆尔.

我的视图文件如下:

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'错误.

haml ruby-on-rails partial-views

32
推荐指数
2
解决办法
4万
查看次数

标签 统计

haml ×1

partial-views ×1

ruby-on-rails ×1