In my app, I have a comments section with a body.
<p><%= truncate(comment.body, length: 550) %> <%= link_to "Read More" %></p>
I currently have this code to only show a portion of the comment's body, but when in the Link_to, when the user clicks on Read More, it disables the truncate method and show the full body
How would I go by doing that?
Thanks