Skip to content

Instantly share code, notes, and snippets.

@ayush
Created December 21, 2011 11:20
Show Gist options
  • Save ayush/1505675 to your computer and use it in GitHub Desktop.
Save ayush/1505675 to your computer and use it in GitHub Desktop.
Play 2.0 Controller Parameters
val updateEmployeeInput = Form(
of(
"id" -> of[String],
"name" -> of[String],
"department" -> of[String],
"salary" -> of[String]
)
)
def updateEmployee() = Action { implicit request =>
val (id, name, department, salary) = updateEmployeeInput.bindFromRequest.get
//respond
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment