I've just generated my first scaffold in rails. Now, I don't want my table to have a field named "id". Instead I want it to be named "uid" which will be an arbitrary string. But I can't seem to get my head around how this is to be done. Especially with managing routes. I've managed to set :id=>false and define "uid" as the primary key but the controller fails because it still tries to lookup by id. How do I handle this?
Also, anything else I'm not aware of that might blow?
And, I know rails is all about convention and all and I must not try to go against "the rails way", but I really want this thing to work this way.