What's the best practice to create has_one relations?
For example, if I have a user model, and it must have a profile...
How could I accomplish that?
One solution would be:
# user.rb
class User << ActiveRecord::Base
  after_create :set_default_association
  def set_default_association
    self.create_profile
  end
end
But that doesn't seem very clean... Any suggestions?
 
     
     
     
     
     
     
     
     
     
    