RESTful routes are making me a sad panda.
I’m using rails 1.2.1 and have an event controller with create, update,
show, etc. I also have my resources mapped in routes.rb:
I thought that the RESTful url for updating an event should be:
But I keep getting a 404 for that. On the other hand, if I post to:
it works just fine.
Note that I still have the default routes at the bottom of my routes.rb:
Install the default route as the lowest priority.
But if I take that out then neither the /events/id nor the
/events/update/id versions work.
We’re not supposed to use the /controller/action type urls with REST
right? Does anyone know why map.resources isn’t working correctly or
what I can do to debug it?