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

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -