On 12/22/05, Jeff Watkins <[EMAIL PROTECTED]> wrote:
>
> I'm diving into the DataController goodness to support Ajax (via a
> specialised controller AjaxDataController) and I was wondering how
> the CRUD layer was planning to handle relations.
>
> It would be really nice if I could access the following URL:
>
>      /user/jeff/email_addresses
>
> and receive a list of all of my email addresses. I could then have
> URLs similar to:
>
>      /user/jeff/email_addresses/1/delete
>
> to remove an address, or:
>
>      /user/jeff/email_addresses/1/update?city=Newburyport
>
> or even:
>
>      /user/jeff/email_addresses/create?street=3+Market+Square+Apt
> +3&city=...
>
> Am I just crazy here?

Seems like a good idea. When the DataController is instantiated, it
can look for relationships on the sql_class and instantiate child
DataControllers to handle those. (The UI could be updated to look for
those other relationships and provide links and UI for dealing with
them.)

> (And yes, I know the current DataController doesn't allow indexing by
> alternate IDs, but that'll be fixed soon.)

Cool. That was definitely something I had in mind. (I don't know if
you saw all of those messages about slugs, but that was somewhat
related to this.)

Kevin

Reply via email to