playframework - play framework form validation in scala -
working of play framework form validation in scala follows signup object, gives me error @ line "mapping(": "missing arguments method mapping in object forms; follow method `_' if want treat partially applied function"
case class userregistration(username: string, password1: string, password2: string) val loginform = form( mapping( "username" -> email, "password1" -> text, "password2" -> text ) (userregistration.apply)(userregistration.unapply) verifying ("passwords must match", => f.password1 == f.password2) )
case class userregistration(username: string, password1: string, password2: string) val loginform = form( mapping( "username" -> email, "password1" -> text, "password2" -> text ) (userregistration.apply)(userregistration.unapply) verifying ("passwords must match", f => f.password1 == f.password2) ) your missing ("passwords must match", f => f.password1 == f.password2)
Comments
Post a Comment