Using Action View helpers in Rails models

by Trevor Turk

Let’s say you want to… I dunno… truncate and escape some text in a Rails model. Here’s how: