diff options
author | Jaime Iniesta <jaimeiniesta@gmail.com> | 2012-10-17 12:50:08 +0200 |
---|---|---|
committer | Jaime Iniesta <jaimeiniesta@gmail.com> | 2012-10-17 12:50:08 +0200 |
commit | 701bd838c5b9f71b41632f198ed440723cb477a3 (patch) | |
tree | c822105aec5794cf9839c958792adccab86d2bfd /guides/source | |
parent | f5b9ed4fbc3215a5fce48985ea372ad3f1182252 (diff) | |
download | rails-701bd838c5b9f71b41632f198ed440723cb477a3.tar.gz rails-701bd838c5b9f71b41632f198ed440723cb477a3.tar.bz2 rails-701bd838c5b9f71b41632f198ed440723cb477a3.zip |
Fix typos in Association Basics guide
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/en/association_basics.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/en/association_basics.md b/guides/source/en/association_basics.md index 42c7c07745..cf3ae581b3 100644 --- a/guides/source/en/association_basics.md +++ b/guides/source/en/association_basics.md @@ -637,7 +637,7 @@ The `create_association` method returns a new object of the associated type. Thi #### Options for `belongs_to` -While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `belongs_to` association reference. Such customizations can easily be accomplished by passing options and scope blocks when you create the association. For example, this assocation uses two such options: +While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `belongs_to` association reference. Such customizations can easily be accomplished by passing options and scope blocks when you create the association. For example, this association uses two such options: ```ruby class Order < ActiveRecord::Base @@ -932,7 +932,7 @@ The `create_association` method returns a new object of the associated type. Thi #### Options for `has_one` -While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `has_one` association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this assocation uses two such options: +While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `has_one` association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this association uses two such options: ```ruby class Supplier < ActiveRecord::Base @@ -1143,7 +1143,7 @@ When you declare a `has_many` association, the declaring class automatically gai * `collection.build(attributes = {}, ...)` * `collection.create(attributes = {})` -In all of these methods, `collection` is replaced with the symbol passed as the first argument to `has_many`, and `collection_singular` is replaced with the singularized version of that symbol.. For example, given the declaration: +In all of these methods, `collection` is replaced with the symbol passed as the first argument to `has_many`, and `collection_singular` is replaced with the singularized version of that symbol. For example, given the declaration: ```ruby class Customer < ActiveRecord::Base @@ -1286,7 +1286,7 @@ The `collection.create` method returns a new object of the associated type. This #### Options for `has_many` -While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `has_many` association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this assocation uses two such options: +While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `has_many` association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this association uses two such options: ```ruby class Customer < ActiveRecord::Base @@ -1737,7 +1737,7 @@ The `collection.create` method returns a new object of the associated type. This #### Options for `has_and_belongs_to_many` -While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `has_and_belongs_to_many` association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this assocation uses two such options: +While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the `has_and_belongs_to_many` association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this association uses two such options: ```ruby class Parts < ActiveRecord::Base |