Localized Tag#identifier
Tower He
committed Jan 09, 2012
commit 89cbfc0d0720117adfee50a2de78dd983916cd64
Showing 1
changed file with
1 additions
and 1 deletions
comfortable_mexican_sofa/form_builder.rb b/lib/comfortable_mexican_sofa/form_builder.rb
+1
-1
| @@ | @@ -57,7 +57,7 @@ class ComfortableMexicanSofa::FormBuilder < ActionView::Helpers::FormBuilder |
| # -- 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 = '' | |