-
-
Notifications
You must be signed in to change notification settings - Fork 576
Closed
Description
Hello, today I end up with strange issue in Rails 5:
Here is how a simple text.html.erb file looks like:
<textarea><%= "a\nb\nc" %></textarea>
And here is what it produce:
I'm talking about these leading spaces before second and third strings.
In my code I have a form with textarea:
.form
=form_for article do |f|
.form-group
=field_label f, :text, true
=f.text_area :text, class: %w(form-control), rows: 20, placeholder: t('placeholder.article_text')
And the same issue happens there on Edit action
I found out that the reason is haml-rails gem in Gemfile. Without it <textarea><%= "a\nb\nc" %></textarea>
forks fine, but with it, it adds extra spaces.
Metadata
Metadata
Assignees
Labels
No labels