Permalink
Browse files

don't generate label for attribute to nonexistent id, closes #344

  • Loading branch information...
1 parent 16fe816 commit 5551e6421d3519b1f869f21b31e31b24660c77eb @nashby committed Nov 29, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/simple_form/components/labels.rb
@@ -22,6 +22,7 @@ def translate_required_mark
end
def label
+ return template.label_tag(nil, label_html_options) { label_text } if [:check_boxes, :radio].include?(input_type)
@builder.label(label_target, label_text, label_html_options)
end

0 comments on commit 5551e64

Please sign in to comment.