title: Rails Array to HTML Table
body: <p>I have an array coming from a rails app, and I'm getting the following array.</p>
  
  <pre><code>[
    #&lt;InvoiceDetail id: 66018858, invoice_id: 108855, package_id: 21008265, tracking_num: "1Z1Y81420342195332", base_charge: #&lt;BigDecimal:7fed215e7188,'0.857E1',18(18)&gt;, discount: #&lt;BigDecimal:7fed215e70e8,'-0.308E1',18(18)&gt;, created_at: "2012-07-30 15:33:43", updated_at: "2013-02-27 15:31:16", type_id: 54, transaction_date: "2012-07-23", gl_code: nil, division: nil&gt;,
    #&lt;InvoiceDetail id: 66018912, invoice_id: 108855, package_id: 21008282, tracking_num: "1Z1Y81420341336904", base_charge: #&lt;BigDecimal:7fed215e5e78,'0.823E1',18(18)&gt;, discount: #&lt;BigDecimal:7fed215e5d88,'-0.274E1',18(18)&gt;, created_at: "2012-07-30 15:33:44", updated_at: "2013-02-27 15:31:16", type_id: 54, transaction_date: "2012-07-23", gl_code: nil, division: nil&gt;,
    #&lt;InvoiceDetail id: 66019132, invoice_id: 108855, package_id: 21008350, tracking_num: "1Z1Y81420340443595", base_charge: #&lt;BigDecimal:7fed215e4988,'0.995E1',18(18)&gt;, discount: #&lt;BigDecimal:7fed215e48e8,'-0.428E1',18(18)&gt;, created_at: "2012-07-30 15:33:46", updated_at: "2013-02-27 15:31:16", type_id: 54, transaction_date: "2012-07-24", gl_code: nil, division: nil&gt;,
    #&lt;InvoiceDetail id: 66019370, invoice_id: 108855, package_id: 21008425, tracking_num: "1Z1Y81420341794357", base_charge: #&lt;BigDecimal:7fed215ef608,'0.904E1',18(18)&gt;, discount: #&lt;BigDecimal:7fed215ef568,'-0.355E1',18(18)&gt;, created_at: "2012-07-30 15:33:48", updated_at: "2013-02-27 15:31:16", type_id: 54, transaction_date: "2012-07-26", gl_code: nil, division: nil&gt;,
    #&lt;InvoiceDetail id: 66018877, invoice_id: 108855, package_id: 21008271, tracking_num: "1Z1Y81420341786795", base_charge: #&lt;BigDecimal:7fed215ee208,'0.736E1',18(18)&gt;, discount: #&lt;BigDecimal:7fed215ee118,'-0.187E1',18(18)&gt;, created_at: "2012-07-30 15:33:43", updated_at: "2013-02-27 15:31:16", type_id: 54, transaction_date: "2012-07-23", gl_code: nil, division: nil&gt;,
    #&lt;InvoiceDetail id: 66018894, invoice_id: 108855, package_id: 21008276, tracking_num: "1Z1Y81420341777849", base_charge: #&lt;BigDecimal:7fed215ecd18,'0.823E1',18(18)&gt;, discount: #&lt;BigDecimal:7fed215ecc78,'-0.274E1',18(18)&gt;, created_at: "2012-07-30 15:33:44", updated_at: "2013-02-27 15:31:16", type_id: 54, transaction_date: "2012-07-23", gl_code: nil, division: nil&gt;
  ]
  </code></pre>
  
  <p>I'm looking to parse out that data into a html table. Still pretty new with Rails and not sure where to start on this one.</p>
  
  <p>Edit:</p>
  
  <p>Here is what I'd like the the table to take a look like.</p>
  
  <pre><code>       &lt;table class="table table-condensed"&gt;
            &lt;thead&gt;
              &lt;tr&gt;
                &lt;th&gt;Invoice Id&lt;/th&gt;
                &lt;th&gt;Package Id&lt;/th&gt;
                &lt;th&gt;Tracking Number&lt;/th&gt;
                &lt;th&gt;Base Charge&lt;/th&gt;
                &lt;th&gt;Discount&lt;/th&gt;
                &lt;th&gt;Type Id&lt;/th&gt;
                &lt;th&gt;Transaction Date&lt;/th&gt;
                &lt;th&gt;Gl Code&lt;/th&gt;
                &lt;th&gt;Division&lt;/th&gt;
              &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
              &lt;tr&gt;
                &lt;td&gt;108855&lt;/td&gt;
                &lt;td&gt;21008265&lt;/td&gt;
                &lt;td&gt;1Z1Y81420342195332&lt;/td&gt;
                &lt;td&gt;8&lt;/td&gt;
                &lt;td&gt;-3&lt;/td&gt;
                &lt;td&gt;54&lt;/td&gt;
                &lt;td&gt;2012-07-23&lt;/td&gt;
                &lt;td&gt;nil&lt;/td&gt;
                &lt;td&gt;nil&lt;/td&gt;
              &lt;/tr&gt;
            &lt;/tbody&gt;
          &lt;/table&gt;
  </code></pre>