Extra spaces when rendering text_area in Rails 3.2.3

I get extra space inside the text area when rendering this HAML code.

= f.text_area :message, placeholder: "Reply"

I am running Rails 3.2.3 and haml-rails 0.3.4 and haml 3.1.4

I have no idea why this is happening.

This is code created with extra spaces.

<textarea class="textarea" cols="50" id="idea_idea" name="idea[idea]" rows="2">&#x000A;</textarea>
+3
source share
2 answers

Just found a solution to this problem.

I upgraded to version 3.1.5 of the beta version of HAML and now works fine.

gem 'haml', :git => "git://github.com/haml/haml.git", :branch => "315"
+2
source

The version in which you are working should have similar problems fixed, see the ActionPack Changelog changes below, it contains several entries related to the problem.

https://github.com/rails/rails/blob/3-2-stable/actionpack/CHANGELOG.md

0

All Articles