title: could not find implicit value for parameter messages: play.api.i18n.Messages in Play Framework 2.5.3
body: <p>I am trying to test the sample path variables in my local using Play Framework 2.5.3.</p>
  
  <pre><code> package controllers
  
   import play.api._
   import play.api.data._
   import play.api.data.Forms._
   import play.api.mvc._
   import play.api.libs.json._
   import play.api.libs.json.Json._
   import play.api.libs.functional.syntax._
  
   case class Product(sku: String, title: String)
   object Product {
  implicit def pathBinder(implicit stringBinder: PathBindable[String]) = new PathBindable[Product] {
    override def bind(key: String, value: String): Either[String, Product]    = {
      for {
        sku &lt;- stringBinder.bind(key, value).right
        product &lt;- productMap.get(sku).toRight("Product not found").right
      } yield product
    }
    override def unbind(key: String, product: Product): String = {
      stringBinder.unbind(key, product.sku)
    }
   }
  
  def add(product: Product) = productMap += (product.sku -&gt; product)
  
  val productMap = scala.collection.mutable.Map(
      "ABC" -&gt; Product("ABC", "8-Port Switch"),
      "DEF" -&gt; Product("DEF", "16-Port Switch"),
      "GHI" -&gt; Product("GHI", "24-Port Switch")
  )
  }
  
  object Products extends Controller {
    implicit val productWrites = new Writes[Product] {
    def writes(product: Product) = Json.obj(
      "sku" -&gt; product.sku,
      "title" -&gt; product.title
      )
    }
  
  implicit val productReads: Reads[Product] = (
  (JsPath \ "sku").read[String] and
  (JsPath \ "title").read[String]
  )(Product.apply _)
  
  val productForm: Form[Product] = Form(
    mapping(
      "sku" -&gt; nonEmptyText,
      "title" -&gt; nonEmptyText
    )(Product.apply)(Product.unapply)
  )
  
  def index = Action {
      Ok(toJson(Product.productMap.values))
  }
  
  def postProduct = Action(BodyParsers.parse.json) { request =&gt;
      val post = request.body.validate[Product]
    post.fold(
      errors =&gt; {
        BadRequest(Json.obj("status" -&gt;"error", "message" -&gt; JsError.toFlatJson(errors)))
      },
      product =&gt; { 
          Product.add(product)
        Created(toJson(product))
      }
    )
  }
  
  def edit(product: Product) = Action {
      Ok(views.html.products.form(product.sku, productForm.fill(product)))
  }
  
  def update(sku: String) = Action {
      Ok("Received update request")
  }
  
  }
  </code></pre>
  
  <p>And below is my view.</p>
  
  <pre><code>  @(sku: String, productForm: Form[controllers.Product])
  
    @helper.form(action = routes.Products.update(sku)) {
    @helper.inputText(productForm("sku"))
    @helper.inputText(productForm("title"))
    } 
  </code></pre>
  
  <p>When I am compiling this program I am getting below error</p>
  
  <pre><code> [error] /home/rajkumar/CodeBase/workspaceEclipse/PFC2/app/views/products/form.scala.html:4: could not find implicit value for parameter messages: play.api.i18n.Messages
    [error]   @helper.inputText(productForm("sku"))
     [error]                    ^
    [error] /home/rajkumar/CodeBase/workspaceEclipse/PFC2/app/views/products/form.scala.html:5: could not find implicit value for parameter messages: play.api.i18n.Messages
    [error]   @helper.inputText(productForm("title"))
     [error]                    ^
    [error] 9 errors found
    [error] (compile:compileIncremental) Compilation failed
  </code></pre>
  
  <p>Could anyone help me resolving this issue.</p>