I have this div
<div class='notice'>
And I want the result to be
<div class="notice error">
And Is there a way to add a class in my erb? I tried
<div class="notice #{new_class}">
But that doesn't escape into ruby code when it renders...
and ideas?
It's with <%=
%>
<div class="notice <%= new_class %>">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With