aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgerrand <github.com@sgerrand.com>2011-05-09 01:18:24 -0700
committersgerrand <github.com@sgerrand.com>2011-05-09 01:18:24 -0700
commitf40a3ea81c9f9a8d6b041b8b5f0750de8d25bee0 (patch)
treea317b9346f43fc94a03b3fe8c82496975a34a294
parent2fae429941ec53795fd29df68b22bec12adc16bb (diff)
parentb97e6300ef5c89efdb75a00daa93f449f31c4562 (diff)
downloadrails-f40a3ea81c9f9a8d6b041b8b5f0750de8d25bee0.tar.gz
rails-f40a3ea81c9f9a8d6b041b8b5f0750de8d25bee0.tar.bz2
rails-f40a3ea81c9f9a8d6b041b8b5f0750de8d25bee0.zip
Merge pull request #42 from sgerrand/master
Fixed typo in association configuration example
-rw-r--r--railties/guides/source/association_basics.textile4
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>