ruby on rails - list item not rendering as child of ul -


i'm trying build ul using slim in rails. appears render correctly, when @ code list empty.

.row     ul.file-list     - @file_items.each |file_item|       li.row.file-item         .col-lg-9           p.label             = "#{file_item[:path]}/#{file_item[:name]}"           p.file-size             = "#{number_to_human_size(file_item[:size]).downcase} | "         .col-lg-1.pull-right           = check_box_tag  "file_id_#{file_item[:id]}", file_item[:id], false, class: 'file-box' 

make sure indentations proper.

.row     ul.file-list     - @file_items.each |file_item|       li.row.file-item         .col-lg-9 

this should this.

.row     ul.file-list       - @file_items.each |file_item|         li.row.file-item           .col-lg-9 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -