Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extra whitespace when rendering a text_area in Rails 3.2.3

I'm getting an extra white space inside the text area when rendering this HAML code.

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

I'm 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 the code rendered with the extra whitespace

<textarea class="textarea" cols="50" id="idea_idea" name="idea[idea]" rows="2">&#x000A;</textarea>
like image 714
Martin Avatar asked Dec 07 '25 03:12

Martin


1 Answers

Just found a solution to this problem.

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

gem 'haml', :git => "git://github.com/haml/haml.git", :branch => "315"
like image 169
Martin Avatar answered Dec 08 '25 15:12

Martin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!