Created
January 24, 2012 10:28
-
-
Save mariussoutier/1669512 to your computer and use it in GitHub Desktop.
Edit user or display 404 Not Found in Play 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserDAO.findByEmail(email).map { user => | |
Ok(views.html.edit(userForm.fill(user))) | |
}.getOrElse(NotFound("User not found!")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment