Hi, I have a string:
<%= “
” if my_condition %>
How I can do that output won’t be “
” if my_condition is true, but
will be a new line?
Hi, I have a string:
<%= “
” if my_condition %>
How I can do that output won’t be “
” if my_condition is true, but
will be a new line?
I think this is what you are asking, <%=raw “
” if my_condition %>
Thanks
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs