summaryrefslogtreecommitdiffstats
path: root/lib/tabular_form_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tabular_form_builder.rb')
-rw-r--r--lib/tabular_form_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tabular_form_builder.rb b/lib/tabular_form_builder.rb
index 5bf690bd4..8728266ba 100644
--- a/lib/tabular_form_builder.rb
+++ b/lib/tabular_form_builder.rb
@@ -43,7 +43,7 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilder
return '' if options.delete(:no_label)
text = options[:label].is_a?(Symbol) ? l(options[:label]) : options[:label]
text ||= l(("field_" + field.to_s.gsub(/\_id$/, "")).to_sym)
- text << @template.content_tag("span", " *", :class => "required") if options.delete(:required)
+ text += @template.content_tag("span", " *", :class => "required") if options.delete(:required)
@template.content_tag("label", text,
:class => (@object && @object.errors[field] ? "error" : nil),
:for => (@object_name.to_s + "_" + field.to_s))