From 24e620b65dda64bc13989d32382ab36fbac9820d Mon Sep 17 00:00:00 2001 From: Tower He Date: Mon, 9 Jan 2012 12:03:41 +0800 Subject: [PATCH] Localized Tag#identifier --- lib/comfortable_mexican_sofa/form_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/comfortable_mexican_sofa/form_builder.rb b/lib/comfortable_mexican_sofa/form_builder.rb index d93fe999a..d4834cb46 100644 --- a/lib/comfortable_mexican_sofa/form_builder.rb +++ b/lib/comfortable_mexican_sofa/form_builder.rb @@ -57,7 +57,7 @@ def submit(value, options = {}, &block) # -- Tag Field Fields ----------------------------------------------------- def default_tag_field(tag, index, options = {}) method = options.delete(:method) || :text_field_tag - label = tag.identifier.to_s.titleize + label = tag.page.class.human_attribute_name(tag.identifier.to_s) css_class = tag.class.to_s.demodulize.underscore content = ''