Permalink
Browse files

Merge pull request #41 from sgerrand/master

Corrected foreign key parameter placement in the self join example
  • Loading branch information...
2 parents d6ff2ee + e0fdbfd commit 2fae429941ec53795fd29df68b22bec12adc16bb @sgerrand sgerrand committed May 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/association_basics.textile
View
2 railties/guides/source/association_basics.textile
@@ -343,8 +343,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",
- :foreign_key => "manager_id"
belongs_to :manager, :class_name => "Employee"
+ :foreign_key => "manager_id"
end
</ruby>

0 comments on commit 2fae429

Please sign in to comment.