--- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -545,7 +545,7 @@ module ActionView add_default_name_and_id(name_and_id) options.delete("index") options["for"] ||= name_and_id["id"] - content = (text.blank? ? nil : text.to_s) || method_name.humanize + content = (text.blank? ? (object.kind_of?(ActiveRecord::Base) ? object.class.human_attribute_name(method_name) : nil) : text.to_s) || method_name.humanize label_tag(name_and_id["id"], content, options) end