title: grails 2.4.4 @Resource gives 404 for all URLS
body: <p>I am struggling to know how to implement REST in grails.  the <a href="http://grails.org/doc/latest/guide/webServices.html#REST" rel="nofollow">documentation</a> says I should be able to do the following:</p>
  
  <p>User.groovy</p>
  
  <pre><code>import grails.rest.*
  @Resource(uri='/users')
  class User {
    // lots of stuff
  }
  </code></pre>
  
  <p>UserController.groovy</p>
  
  <pre><code>class UserController {
  static scaffold = true;
  }
  </code></pre>
  
  <p>Basically, if I try any of the following URLS, I always get 404:</p>
  
  <pre><code> http://localhost:8080/myapp/users/
   gives: HTTP Status 404 - "/players/index.gsp" not found.
  
   http://localhost:8080/myapp/users/1
   gives: 404, the requested resource is not available (I have users defined in bootstrap)
  </code></pre>
  
  <p>NOTE:</p>
  
  <ol>
  <li>I also tried it with the scaffolding line commented out.</li>
  <li>.../myapp/user does work, but gives the HTML page</li>
  <li>Even if @Resource did work, it is not actually what I am looking for.  I need custom logic for each method.  I have found lots of documented different ways to do this in 2.3, but don't know if this is still the correct way for 2.4?</li>
  </ol>