I am learning Haml.
My view files are like:
show.html.haml:
.content
= render 'meeting_info', :locals => { :info => @info }
and _meeting_info.html.haml:
.detail
%table
%caption
Meeting Informations of
= info["meeting_name"]
...
When I tried running this I got an undefined local variable or method 'info' error.
Try this
Without
:localsand:partialNo need to specify locals.
With
:localsand:partialYou should specify locals in following case i.e specifying
:partialfor render