deeply nested RESTful resources in Rails
I have this structure in my app:

USER has_one :publicprofile, :privateprofile

PUBLICPROFILE has many :emails, :phonenumbers

PRIVATEPROFILE has many :adresses, :creditcards

I would like to know how to go about having a profile page for the user where I can update his nested resources (and do it in a RESTful way). I couldn't find any docs/examples on the subject (because of that confusing has_one relation).

Thanks!
deeply nested RESTful resources in Rails
===

I have this structure in my app:

USER has_one :publicprofile, :privateprofile

PUBLICPROFILE has many :emails, :phonenumbers

PRIVATEPROFILE has many :adresses, :creditcards

I would like to know how to go about having a profile page for the user where I can update his nested resources (and do it in a RESTful way). I couldn't find any docs/examples on the subject (because of that confusing has_one relation).

Thanks!