This is an in-progress example of a DNS setup for a Rails app that will allow members to claim a subdomain that is hosted on Heroku. Additionally, subdomain owners should have the option to use their own domain that maps to this subdomain.
Heroku has a slightly unique DNS setup, so it seems that some DNS workarounds will be necessary.