I have a controller for different levels, org, customer, appointment and so on.
When i want to for example edit a customer the address looks like /hostname/customer/edit/5/2 where 5 is the org and 2 is the customer. Appointment would look like /hostname/appointment/5/2/10 where 10 is the id of the appontment. 5 and 2 are not exactly neccesary as all appointments have a unique id, but often it is good to have them in the address. If nothing else it is good to allways use the same syntax. Kenneth ----- Alkuperäinen viesti ----- > I have an app that supports multiple organizations. > Each organization has many customers. > Each customer has many appointments. > > I think that means organizations, while controllers, employ a customer > controller, which employes an appointment controller. > > In my head the URL for editing an appointment should therefore look > like this: > > /hostname/organization/5/customer/2/appointment/edit/9 > > This kind of organization also lets one bookmark an action or record > easily. > > I am doing multiple things wrong, of course, but I don’t know exactly > what. Can someone explain at a high level what I should correct, > ideally some documentation somewhere? I have been reading the 3rd > edition section 4.2 but am stuck. Thanks!

