Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #41 from sgerrand/master

Corrected foreign key parameter placement in the self join example
  • Loading branch information...
commit 2fae429941ec53795fd29df68b22bec12adc16bb 2 parents d6ff2ee + e0fdbfd
Sasha Gerrand sgerrand authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/association_basics.textile
2  railties/guides/source/association_basics.textile
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.