Yeah… I’m totally struggling to grok resource routes too… seems like
they’ve totally blown the beautiful simplicity of the old url pattern
stuff out of the water.
Would love to hear an answer to this question!!!
Andy T. wrote:
I want to customize map.resources so it uses a uid in the URL instead
of the database id. The uid is a field on my object.
So I have map.resources :things in routes.rb and I can update a thing
by accessing POST /thing/1. Instead I want to update the thing by
POST /thing/80ed14ce098affc2 The thing has an id of 1 and a uid of
Any options other then getting rid of map.resources and explicitly
defining all the REST routes?