semantic_form_for 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ class SemanticFormFor::FormBuilder < ActionView::Helpers::FormBuilder
|
|
33
33
|
options = args.extract_options!
|
34
34
|
text = args.shift
|
35
35
|
error = self.object.errors[attribute].try(:join, ', ')
|
36
|
-
labeled = text.present?
|
36
|
+
labeled = text.present? || text.nil?
|
37
37
|
|
38
38
|
classes = [ input ]
|
39
39
|
classes << 'error' if error.present?
|