Skip to content

Instantly share code, notes, and snippets.

@mariussoutier
Created January 24, 2012 10:28
Show Gist options
  • Select an option

  • Save mariussoutier/1669512 to your computer and use it in GitHub Desktop.

Select an option

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