title: "Cannot use a method returning Unit as an Handler" getting this error in routes file - Play 2.0 Framework
body: <p>I have these 2 methods in my contoller:</p>
  
  <pre><code>public static void index() {
     List&lt;Tweet&gt; tweets = Tweet.findLatest();
     render(Template("index.html").params(tweets).render());
  }
  
  
  public static void create(String tweet) {
     Tweet t = new Tweet();
     t.tweet = tweet;
     t.save();
     render(Template("index.html").params(t).render());
  }
  </code></pre>
  
  <p>Now the routes is shouting at me saying "Cannot use a method returning Unit as an Handler". My route file has this default route defined in it:</p>
  
  <p><code>GET     /                           controllers.Application.index()</code></p>
  
  <p>what could be the possible reason ?</p>