Permalink
Browse files

fix the inline help being invisible with addons

  • Loading branch information...
1 parent 4e338d1 commit 6efac199d1b1b83aefa14b0317380ab318c28b1c @hdgarrood hdgarrood committed Oct 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/twitter_bootstrap_form_for/form_builder.rb
@@ -161,12 +161,12 @@ class TwitterBootstrapFormFor::FormControls < ActionView::Helpers::FormBuilder
tag = add_on.present? ? :div : :span
classes = [ "input", add_on ].compact.join('-')
- template.content_tag(tag, :class => classes) do
+ template.concat(template.content_tag(tag, :class => classes) do
block.call if block.present? && add_on == :prepend
template.concat super attribute, *(args << options)
block.call if block.present? && add_on != :prepend
- template.concat self.error_span(attribute) if self.errors_on?(attribute)
- end
+ end)
+ template.concat(self.error_span(attribute)) if self.errors_on?(attribute)
end
end

0 comments on commit 6efac19

Please sign in to comment.