diff --git a/lib/tabular_form_builder.rb b/lib/tabular_form_builder.rb index 2dd2f29..5bf690b 100644 --- a/lib/tabular_form_builder.rb +++ b/lib/tabular_form_builder.rb @@ -41,7 +41,7 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilder # Returns a label tag for the given field def label_for_field(field, options = {}) return '' if options.delete(:no_label) - text = l(options[:label]) if options[: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) @template.content_tag("label", text,