我正在学习哈姆尔.
我的视图文件如下:
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'错误.
有什么区别array.count和array.size?
我在使用时有时会在生产环境中遇到错误array.count,但是当我使用时,同样可以正常工作array.size.
我应该写什么来将其转换为haml
当我尝试这样的时候
%p
We prefer questions that can be
%b answered
. not just discussed.
Run Code Online (Sandbox Code Playgroud)
我得到了非法元素:类和id必须有值错误.
有没有什么方法我可以得到点不加粗.