From: Mike S. <ms...@md...> - 2010-01-05 17:02:10
|
right, because (based on the other email) your ENTITY name is SamsStudent ... the CLASS is student. routes are entity-based, though, so the default would be using: /ra/sams_student/308226.plist (or if you haven't updated to the 5-second-ago one, /ra/samsstudent/308226.plist) ms On Jan 5, 2010, at 6:26 AM, David Avendasora wrote: > Hi all, > > I'm attempting to start using ERRest and I'm running into a minor problem. > > shouldn't adding the default routes like this: > > routeRequestHandler.addDefaultRoutes(Student.ENTITY_NAME); > > Include the following route? > > routeRequestHandler.addRoute(new ERXRoute(Student.ENTITY_NAME, > "/student/{student:Student}", > SamsStudentsController.class, > "show")); > > Without manually specifying this route, I get: "There is no route for the path 'student/308226.plist'." > > Dave > > David Avendasora > Senior Software Engineer > K12, Inc. > > ***** > WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ > ***** > WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html > ***** > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc |