I want to show paragraph breaks appear in the event description just as the user typed them on , how to do in ruby?
I want to show paragraph breaks appear in the event description just as the user typed them on , how to do in ruby?
<pre><%= h event.description ></pre>
Phlip wrote:
I want to show paragraph breaks appear in the event description just as the user typed them on , how to do in ruby?
<pre><%= h event.description ></pre>
Ruby's simple_format method is not working for spaces. so how to add and what to add in simple format method code so it also work for spaces?