app/helpers/doorkeeper/form_errors_helper.rb



module Doorkeeper::FormErrorsHelper
  def errors_for(object, method)
    if object.errors[method].present?
      object.errors[method].map do |msg|
        content_tag(:span, :class => "help-block") do
          msg.capitalize
        end
      end.reduce(&:join).html_safe
    end
  end
end