title: Getting "too many arguments for method apply" routes with multiple parameters
body: <p>I have a routes file like this:</p>
  
  <pre><code>GET /getOf/:city/:fi/:state/:zipCode    cont.Offer.getOf(city:String, fi:String, state:String, zipCode:String)
  </code></pre>
  
  <p>In my scala class, my code is like this:</p>
  
  <pre><code>def getOf(city:String, fi:String,state:String,zipCode:String) = Action(parse.anyContent) {request =&gt;
      val offer = Offer(city,fi,state,zipCode);
  
      Ok(Json.toJson(offerService.getOffer(offer)));
  
  }
  </code></pre>
  
  <p>But when I run I get this compilation error:</p>
  
  <pre><code>too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart
  </code></pre>
  
  <p>But same code works fine if I have only one argument. I even not understanding what's the problem. Yes, I have created Eclipse project with <code>play clean-all</code> and others. But still same problem persists.</p>
  
  <p>Can anyone please guide me on this? As I am very new to Play framework and scala.</p>