Skip to content
Browse files

Merge pull request #2 from jpg/master

Added control-label class to label tags
  • Loading branch information...
2 parents ba14da9 + eefdb90 commit 8ccd66f9a239048bfdc8431703c3513706b9c1f4 @coder2000 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/twitter_bootstrap_form_for/form_builder.rb
View
2 lib/twitter_bootstrap_form_for/form_builder.rb
@@ -92,7 +92,7 @@ def inline(label = nil, &block)
classes << ('input-' + options.delete(:add_on).to_s) if options[:add_on]
self.div_wrapper(attribute) do
- template.concat self.label(attribute, label) if label
+ template.concat self.label(attribute, label, :class=>'control-label') if label
template.concat template.content_tag(:div, :class => classes.join(' ')) {
template.concat super(attribute, *(args << options))
template.concat error_span(attribute)

0 comments on commit 8ccd66f

Please sign in to comment.
Something went wrong with that request. Please try again.