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
Post a Comment