Skip to content

Instantly share code, notes, and snippets.

@shafirov
Created October 2, 2013 12:01
Show Gist options
  • Save shafirov/6792630 to your computer and use it in GitHub Desktop.
Save shafirov/6792630 to your computer and use it in GitHub Desktop.
Post("profile/p") class UpdateProfileDetails(val f: String, val l: String, e: String) : Request({
authorize {
update(Account) {
firstName = f
lastName = l
email = e
}
redirect(ProfilePage(null))
}
})
@shafirov
Copy link
Author

shafirov commented Oct 2, 2013

Backend for Account details form. Finds Account instance in DB and updates columns to values from POST request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment