# How to set row height in active scaffold html table?

**URL:** <https://www.ruby-forum.com/t/how-to-set-row-height-in-active-scaffold-html-table/142621>\
**Category:** Rails\
**Created:** [July 9, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-set-row-height-in-active-scaffold-html-table/142621 "2008-07-09T19:14:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzhou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecd19e/32.png) [@dzhou](https://www.ruby-forum.com/u/dzhou)\
**Post date:** [July 9, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-set-row-height-in-active-scaffold-html-table/142621/1 "2008-07-09T19:14:28Z")

</div>

I have a products table created in active scaffold and html table  
display is fine.But the product descriptions are too long for some  
products and it stretches the html TD cell.

Now I want to limit the TD height and make the rest of description  
content hidden by adding

 to the TD contents. That is: ...
Product\_descriptions

My question is how I can do this customization?

TIA,

Daniel

---

<div class="post-metadata">

**Author:** ![dzhou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecd19e/32.png) [@dzhou](https://www.ruby-forum.com/u/dzhou)\
**Post date:** [July 9, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/how-to-set-row-height-in-active-scaffold-html-table/142621/2 "2008-07-09T20:22:01Z")

</div>

I figure this out by myself:

module ProductsHelper  
$tag\_start = “

”  
$tag\_end = “
”

def description\_column(record)  
description = $tag\_start + record.description  
description += $tag\_end  
end  
end
