RailsCasts Pro episodes are now free!

Learn more or hide this

Robert Fletcher's Profile

GitHub User: mockdeep

Site: www.knowledgepile.net

Comments by Robert Fletcher


I wonder if the :dependent => :destroy relationship should be in the user instead of the profile. This would probably only be a concern when transitioning between profiles, but if you want to delete the guest profile before adding the member profile you have to wait until after the user has been updated. On the other hand, if the user is destroyed, chances are you want the profile to be destroyed along with it.