Skip to content

Commit

Permalink
fix the inline help being invisible with addons
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Garrood committed Oct 7, 2012
1 parent 4e338d1 commit 6efac19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/twitter_bootstrap_form_for/form_builder.rb
Expand Up @@ -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

Expand Down

0 comments on commit 6efac19

Please sign in to comment.