The following code isn't working, I need to create css class like 'read-more-105','read-more-106' etc, according to tale.id's vale
<%= simple_format truncate(plot.description, length: char_counter){link_to "Read More",'', class: 'read-more-<% tale.id %>'} %>
you need string interpolation here:
As you can not have
<% %>
inside a<% %>
or<%= %>
.