I need to display properly my form.text_area with CR (carriage return when the enter key is press(in display show)
I have tried to use simple_format(<%= form.text_area :description %>) but it's not work.
<!-- Description -->
<div class="field">
<label>Description : </label>
<div class="<%=ticket.errors[:description].empty? ? 'field' : 'field error'%>">
simple_format(<%= form.text_area :description %>)
</div>
</div>
I wish you can help me, thanks.
Aucun commentaire:
Enregistrer un commentaire