# File lib/simple_form/components/errors.rb, line 4 def error template.content_tag(error_tag, error_text, error_html_options) if has_errors? end
# File lib/simple_form/components/errors.rb, line 20 def error_html_options html_options_for(:error, [:error]) end
# File lib/simple_form/components/errors.rb, line 16 def error_method options[:error_method] || SimpleForm.error_method end
# File lib/simple_form/components/errors.rb, line 30 def errors @errors ||= (errors_on_attribute + errors_on_association).compact end
# File lib/simple_form/components/errors.rb, line 38 def errors_on_association reflection ? object.errors[reflection.name] : [] end
Generated with the Darkfish Rdoc Generator 2.