How can I limit the <td> characters?

I have this code:

<% for repair_ticket in @repair_tickets %>

<% end %>
<%=_('Client')%>
<%=h repair_ticket.client.name %>

I want only to show the first 10 letters of client.name. Can I do that
only with HTML? Should I use Ruby?

On 25 Apr 2008, at 12:19, John S. wrote:

I want only to show the first 10 letters of client.name. Can I do that
only with HTML? Should I use Ruby?

rails has the truncate helper, so in this case
truncate(repair_ticket.client.name, 10)

Fred