title: Scala Routing Error
body: <p>I am new to Scala and Play.
  I have called the function from Application.scala in the html page as follows</p>
  
  <pre><code>&lt;form action="@routes.Application.register()" class="pull-center"&gt;
          &lt;div class="content"&gt;
              First Name:&lt;input type="text" id="First Name"/&gt;
              Last Name: &lt;input type="text" id="Last Name"/&gt;
              User Name: &lt;input type="text" id="UserName"/&gt;
              Password:  &lt;input type="text" id="Password"/&gt;
              &lt;button type="submit" class="btn"&gt;Register&lt;/button&gt;
          &lt;/div&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>However, I am getting the error message as follows:</p>
  
  <pre><code>value register is not a member of controllers.ReverseApplication
  </code></pre>
  
  <p>I have specified the route as follows in the routes file as follows:</p>
  
  <pre><code># Routes
  # This file defines all application routes (Higher priority routes first)
  # ~~~~
  
  # Home page
  GET     /                                controllers.Application.index
  GET     /room                            controllers.Application.chatRoom(username: Option[String])
  GET     /room/register          controllers.Application.register
  GET     /room/chat                       controllers.Application.chat(username)
  GET     /assets/javascripts/chatroom.js  controllers.Application.chatRoomJs(username: String)
  
  # Map static resources from the /public folder to the /assets URL path
  GET     /assets/*file                    controllers.Assets.at(path="/public", file)
  </code></pre>
  
  <p>In the Application.scala the function can be defined as follows:</p>
  
  <pre><code>def register() = Action { register =&gt;
      Ok(views.html.register())
  
    }
  </code></pre>
  
  <p>How are the static URI's created  ? Also what is going wrong in my application which is causing this error ?</p>