I have a User and a Profile model, and want to use the last one for
storing some settings and preferences. I think i have the
relationships right (User...has_one :profile,
Profile...belongs_to :user) and a user_id field in the profile_table
What i would like to do is automatically create a profile after
someone registers, using...
...in the User model and in the same file...
this doesn't work, and self.profile.create...etc neither. What am i
doing wrong here? Doesn't profile (in profile.create!) refer to the-