Displaying 1 result from an estimated 1 matches for "build_profile_for_this_us".
Did you mean:
build_profile_for_this_user
2009 Nov 13
1
Delegates and building associations
Class User << ActiveRecord::Base
has_one :profile
delgate :description, :description=, :to => :profile
end
I''d like to do,
@user = User.create(:name => ''Foo Bar'', :description => ''Slow.'')
or
@user = User.update_attributes(:description => ''Slow'')
and have AR create/update the profile model and association (if