diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-11-18 10:50:21 -0600 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-11-18 10:50:21 -0600 |
commit | 9707d1787d80a9951b729b7fea7b59cbad3fc77a (patch) | |
tree | 82249dea22abb0b896ab418a877ea8aa4623614c /railties/doc/guides/source/association_basics.txt | |
parent | c62f973c749beac8947ff5119af43fbde2547eb1 (diff) | |
download | rails-9707d1787d80a9951b729b7fea7b59cbad3fc77a.tar.gz rails-9707d1787d80a9951b729b7fea7b59cbad3fc77a.tar.bz2 rails-9707d1787d80a9951b729b7fea7b59cbad3fc77a.zip |
FIx minor errors in Getting Started & Associations guides
Diffstat (limited to 'railties/doc/guides/source/association_basics.txt')
-rw-r--r-- | railties/doc/guides/source/association_basics.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/doc/guides/source/association_basics.txt b/railties/doc/guides/source/association_basics.txt index e0c9ee35d3..39d92be2d2 100644 --- a/railties/doc/guides/source/association_basics.txt +++ b/railties/doc/guides/source/association_basics.txt @@ -354,8 +354,8 @@ In designing a data model, you will sometimes find a model that should have a re [source, ruby] ------------------------------------------------------- class Employee < ActiveRecord::Base - has_many :subordinates, :class_name => "User", :foreign_key => "manager_id" - belongs_to :manager, :class_name => "User" + has_many :subordinates, :class_name => "Employee", :foreign_key => "manager_id" + belongs_to :manager, :class_name => "Employee" end ------------------------------------------------------- @@ -1336,7 +1336,7 @@ end ===== +:offset+ -The +:offset+ option lets you specify the starting offset for fetching objects via an association. For example, if you set +:offset => 11+, it will skip the first 10 records. +The +:offset+ option lets you specify the starting offset for fetching objects via an association. For example, if you set +:offset => 11+, it will skip the first 11 records. ===== +:order+ @@ -1704,7 +1704,7 @@ end ===== +:offset+ -The +:offset+ option lets you specify the starting offset for fetching objects via an association. For example, if you set +:offset => 11+, it will skip the first 10 records. +The +:offset+ option lets you specify the starting offset for fetching objects via an association. For example, if you set +:offset => 11+, it will skip the first 11 records. ===== +:order+ |