Reputation: 1
I have this written:
<p><%= resource.description %></p>
However, I'd like to truncate so as to not allow any descriptions over X value. I tried:
<truncate (<%= resource.description %>, limit: 30)>
didn't work.
Thanks.
Upvotes: 0
Views: 51