Class: CaseForm::Element::SimpleError
- Includes:
- CaseForm::ElementExt::Associationable
- Defined in:
- lib/case_form/element/errors/simple_error.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
Attributes inherited from Base
Instance Method Summary collapse
-
#generate ⇒ Object
Generate simple errors for method with HTML options.
-
#initialize(builder, method, options = {}) ⇒ SimpleError
constructor
Initialize error object.
Methods included from CaseForm::ElementExt::Associationable
#association, #association_class, #association_human_model_name, #association_method, #association_type?, #associationable?, #collection_association?, #one_to_one_association?, #specific_method, #validate_nested_attributes_association
Methods included from CaseForm::ElementExt::Naming
#object_human_model_name, #sanitized_object_name, #singularize_model_name
Constructor Details
#initialize(builder, method, options = {}) ⇒ SimpleError
Initialize error object
10 11 12 13 |
# File 'lib/case_form/element/errors/simple_error.rb', line 10 def initialize(builder, method, ={}) @method = method super(builder, ) end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
6 7 8 |
# File 'lib/case_form/element/errors/simple_error.rb', line 6 def method @method end |
Instance Method Details
#generate ⇒ Object
Generate simple errors for method with HTML options
17 18 19 |
# File 'lib/case_form/element/errors/simple_error.rb', line 17 def generate template.content_tag error_tag, , end |