diff options
author | Sasha Gerrand <sasha@returnity.com> | 2011-05-09 18:14:44 +1000 |
---|---|---|
committer | Sasha Gerrand <sasha@returnity.com> | 2011-05-09 18:14:44 +1000 |
commit | b97e6300ef5c89efdb75a00daa93f449f31c4562 (patch) | |
tree | a317b9346f43fc94a03b3fe8c82496975a34a294 | |
parent | e0fdbfd33a36cb6836997392465775f68125d598 (diff) | |
download | rails-b97e6300ef5c89efdb75a00daa93f449f31c4562.tar.gz rails-b97e6300ef5c89efdb75a00daa93f449f31c4562.tar.bz2 rails-b97e6300ef5c89efdb75a00daa93f449f31c4562.zip |
- Fixed typo in association parameters configuration (again)
-rw-r--r-- | railties/guides/source/association_basics.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/association_basics.textile b/railties/guides/source/association_basics.textile index e59a30624e..458bfefad8 100644 --- a/railties/guides/source/association_basics.textile +++ b/railties/guides/source/association_basics.textile @@ -342,8 +342,8 @@ In designing a data model, you will sometimes find a model that should have a re <ruby> class Employee < ActiveRecord::Base - has_many :subordinates, :class_name => "Employee", - belongs_to :manager, :class_name => "Employee" + has_many :subordinates, :class_name => "Employee" + belongs_to :manager, :class_name => "Employee", :foreign_key => "manager_id" end </ruby> |