Permalink
Browse files

needed to do this to remove automatic indentations in textareas

  • Loading branch information...
1 parent ced4eee commit a16b63e73f9df5f08a171a97052c210902f71e6e @chrisrhoden committed May 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/team_fun/form_builder.rb
@@ -15,7 +15,7 @@ def initialize(options, object, template)
def textarea(field)
"<textarea id='#{obj_id}_#{field.to_s}'" +\
"#{class_with_errors(field)} name='#{input_name(field)}'>"+\
- "#{object.send(field).to_s}</textarea>"
+ "#{template.preserve object.send(field).to_s}</textarea>"
end
def input(type, field)

0 comments on commit a16b63e

Please sign in to comment.