title: Play Framework. Routes. Error: "not enough arguments for method at..."
body: <p>There are my routes. Second one is commented.</p>
  
  <pre><code>GET         /assets/*file       controllers.Assets.at(path="/public", file)
  
  #GET         /partials/*file    controllers.Assets.at(path="/public/partials", file)
  </code></pre>
  
  <p>( <strong>What I want is:</strong>  to make my html files that are located inside <code>"/public/partials"</code> folder to be available through the web, same way as it's made for <code>assets</code> )</p>
  
  <p>As soon as <strong>I uncomment 2nd line</strong> - it will get errors due to this line (from my <code>index.scala.html</code>):</p>
  
  <pre><code>&lt;link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"&gt;
  </code></pre>
  
  <p>Error is like here:</p>
  
  <blockquote>
    <p>not enough arguments for method at: (path: String, file:
    String)play.api.mvc.Call. Unspecified value parameter file.</p>
  </blockquote>
  
  <p><strong>Q:</strong> What's wrong?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p><strong>Another words:</strong> I want to make my url shorter by providing that mapping. Otherwise I have to use this url: <code>'assets/partials/welcome.html'</code> instead of that one (that I would like to use): <code>'partials/welcome.html'</code>. </p>
  
  <p>Just one more mapping that would make my urls shorter. </p>
  
  <p>It make sense when I need to reach those from JS part, it's like having two applications in one (1.play one, 2. js one), there too routings, two roots. For JS one I'm assuming that I'm already in /public (or in assets) - this is a root for js app. </p>
  
  <p>And I wonder why it doesn't work.</p>