Class: NoCms::Admin::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- NoCms::Admin::FormBuilder
- Defined in:
- app/builders/no_cms/admin/form_builder.rb
Instance Method Summary collapse
Instance Method Details
#errors_field(attribute) ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/builders/no_cms/admin/form_builder.rb', line 11 def errors_field(attribute) = object.errors.(attribute) return '' if .blank? @template.content_tag('ul', @template.raw(.map{|e| @template.content_tag('li', e)}.join), class: 'error') end |