Module: Doorkeeper::FormErrorsHelper
- Defined in:
- app/helpers/doorkeeper/form_errors_helper.rb
Instance Method Summary collapse
Instance Method Details
#errors_for(object, method) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/doorkeeper/form_errors_helper.rb', line 2 def errors_for(object, method) if object.errors[method].present? content_tag(:span, :class => "error help-inline") do object.errors[method].join(',') end end end |