Source

play-sample-app / app / controllers / Data.scala

Full commit
package controllers

import play.api.data._
import play.api.data.Forms._
import play.api.mvc.Action
import play.api.mvc.Controller
import play.api.mvc.Result
import models.com.hascode._
import anorm.Pk
import anorm.Pk

object Data extends Controller {
  //val bookForm: Form[Book] = Form(mapping("id" -> number, "title" -> text, "author" -> text)(Book.apply)(Book.unapply))

  def test = Action {
    //Ok(views.html.myform(bookForm))
    Ok("")
  }

  def post = Action { implicit request =>
    //val book = bookForm.bindFromRequest.get
    Ok("post")
  }
}