I am rendering a variable in rails view.
<%= @data.matrix %>
which prints multidimensional array in template like this:
[[":23", ":12"],[ ":56", ":12"],[":21", ":23"]]
How can I represent the above data in table format that it will actually look like a matrix in view.html page for better reading the values row and colum. We also have the information of @data.row and @data.col in view template.
This is more HTML question but is there any way to do it with rails view syntax?