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 "