title: Pyramid routing issue
body: <p>I'm trying to setup a json service with a dynamic route: /action/{id}</p>
  
  <p>I get a 404 when I navigate to: <a href="http://example.com:8080/action/test" rel="nofollow">http://example.com:8080/action/test</a></p>
  
  <p>Based on <a href="http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/pylons/examples.html" rel="nofollow">this documentation</a>, it seems like my routing is configured correctly, but it is not.</p>
  
  <p>Any idea on what I'm doing wrong here?</p>
  
  <pre><code>from wsgiref.simple_server import make_server
  from pyramid.config import Configurator
  from pyramid.view import view_config
  
  
  @view_config(route_name="action", renderer="json")
  def run_action(self):
      id = self.request.matchdict['id']
      return {'id': id}
  
  
  def main():
      config = Configurator()
      config.add_route('action', '/action/{id}')
      app = config.make_wsgi_app()
      return app
  
  
  if __name__ == '__main__':
      app = main()
      server = make_server('0.0.0.0', 8080, app)
      server.serve_forever()
  </code></pre>