I have a Rails Action Text field :content
and it renders fine if I accept the entire field but it's long and I just want to display a part of it.
<%= year.content %>
works fine except it's too long.
<%= year.content.truncate(70) %>
results in undefined method 'truncate' for #<ActionText::RichText:0x00007ffb811a6060>
<%= year.content.to_s.truncate(70) %>
displays <div class="trix-content"> <div> <strong>Jack Marietich, restaura...
which I could work with, but is there a method that I don't have to strip the beginning?