I am wondering how you can add a CSS class parameter to an ERB statement inside of a do
statement like so;
<% @relatives&.each do |f| %>
<%== f.summary %> <!-- This one here -->
<% end %>
I tried this: <%== f.summary, class: "class-name" %>
since it works in a form like this: <%= f.input :name, class: "class-name" %>
Is this even possible outside of a form?
The point of this is I am using CKEditor to write a summary for something and it is injecting it's own <p>
tags, rendering the styles on <p>
tags surrounding it useless.
It used to be written like this: <p class="card-text basic"><%= raw f.summary %></p>
This text is the summary
`). – Jake Apr 13 '19 at 00:31