# -*- encoding : utf-8 -*- module DeviseHelper def getDeviseErrors(*name) res = Array.new(name.count) resource.errors.each do |attr, message| if index = name.index(attr) res[index] = message end end res end def showDeviseHintError(name, error, additional_class = '') if error "
\
\
#{error}
\
".html_safe end end end