Skip to content

Instantly share code, notes, and snippets.

@mariussoutier
Created January 24, 2012 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariussoutier/1669512 to your computer and use it in GitHub Desktop.
Save mariussoutier/1669512 to your computer and use it in GitHub Desktop.
Edit user or display 404 Not Found in Play 2.0
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