Is there a ruby\rails way to determine string length?
(There is a example below with both a
and b
length equal to 10 chars but quite different actual length)
e.g.
a = lllllllllll
b = WWWWWWWWWWW
Font should also be considered
P.S.
ended up using https://github.com/tbasse/jquery-truncate on a client-side