title: Displaying array in td tag in Haml
body: <p>I have the following div,</p>
  
  <pre><code> - abc.each do |gg, arr = []|
    - gg.items.each {|def| arr.push(def.values) }
  
    = modal(attributes: {id: 'some-modal', class: 'modal-wide'}, legacy: true) do
      = header('Item Details', attributes: {id: 'some-modal-header'})
  
      #graph
        - y_axis = array_values(arr)
        %table{data: {chart: 'line'}, class: 'table-hover'}
          %tbody
            %tr{data: { y_values: y_axis, x_values: [3, 10, 12, 20, 32, 35, 50, 52, 90]}}
              - y_axis.each do |y|
                %td= y
  
      = actions do
        %span= 'hello'
        %button.btn(data-dismiss='modal' aria-hidden='true')= 'close'
  </code></pre>
  
  <p>I don't know what I'm doing wrong here. when I hard code y_axis with the values, it works fine. When I use the above code is skips the loop and goes to "actions". Can someone show some direction.</p>