Browse files

Merge pull request #42 from sgerrand/master

Fixed typo in association configuration example
  • Loading branch information...
2 parents 2fae429 + b97e630 commit f40a3ea81c9f9a8d6b041b8b5f0750de8d25bee0 @sgerrand sgerrand committed May 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/association_basics.textile
View
4 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>

0 comments on commit f40a3ea

Please sign in to comment.