Skip to content

Instantly share code, notes, and snippets.

@teeparham
Forked from andrewculver/fixing_x000a.rb
Created April 24, 2012 22:13
Show Gist options
  • Save teeparham/2484256 to your computer and use it in GitHub Desktop.
Save teeparham/2484256 to your computer and use it in GitHub Desktop.
Temporary fix for the extra newline (
) Rails 3.2.3 + Haml are adding to the output of the text_area form helper.
module ActionView
module Helpers
module FormHelper
def text_area(object_name, method, options = {})
html = InstanceTag.new(object_name, method, self, options.delete(:object)).to_text_area_tag(options)
html.sub(/>\
/, '>').html_safe
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment