Dear All,
My application table display data as like this

-----------------------------------------------
| Col 1 | Col 2 | Col 3 | ...
-----------------------------------------------
        |  V1   | V2 ..
| Row 1 | -------------------------------------
          |  V3   | V4 .. 
-----------------------------------------------
| Row 3 |  V5   | V6...
-----------------------------------------------
...

When I use method: table(..).to_a
I got this result:
=> [["Col 1", "Col 2", "Col 3",..], ["Row 1", "V1", "V2",..], ["V3",
"V4",..],"Row 3", "V5", "V5",..] ]

Looking this result, I found this value ["V3", "V4",..] missing 1
column.

So any solution for this table, that mean I would like the value get
from table always don't missing any column and row in case have row span
or column span
Ex: With the case above, I would like the value I got from table as like
this:

[["Col 1", "Col 2", "Col 3",..], ["Row 1", "V1", "V2",..], ["nil", "V3",
"V4",..],"Row 3", "V5", "V5",..] ]

Or 

[["Col 1", "Col 2", "Col 3",..], ["Row 1", "V1", "V2",..], ["Row 1",
"V3", "V4",..],"Row 3", "V5", "V5",..] ]

Thank you for help.

Hue


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to