Search code examples
ruby-on-railstagsactionviewactionviewhelper

Rails - content_tag for table cell with rowspan


How would you translate this into a Rails content_tag?

<td rowspan="4">glah</td>

Solution

  • What about:

    content_tag(:td, "glah", :rowspan => '4')