Why is my HAML and Ruby loop still not working? -
i have same question in "haml , ruby loop , ul not working", except think have proper indentation, , it's still not working.
my haml code is:
%ul.thumbnails - @images.reverse_each |image| %li.span2 %div.thumbnail
the output is:
<ul class="thumbnails"></ul> <li class="span2"> <div class="thumbnail"></div> </li>
i think indentation in haml code looks right, doesn't it? have no idea wrong.
sergio's answer helped me. apparently have indent plain ruby well.
Comments
Post a Comment