{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/38964885","id":38964885,"diff_hunk":"@@ -84,31 +84,31 @@ In the remainder of this guide, you'll learn how to declare and use the various\n \n ### The `belongs_to` Association\n \n-A `belongs_to` association sets up a one-to-one connection with another model, such that each instance of the declaring model \"belongs to\" one instance of the other model. For example, if your application includes customers and orders, and each order can be assigned to exactly one customer, you'd declare the order model this way:\n+A `belongs_to` association sets up a one-to-one connection with another model, such that each instance of the declaring model \"belongs to\" one instance of the other model. For example, if your application includes authors and books, and each book can be assigned to exactly one author, you'd declare the book model this way:\n \n ```ruby\n-class Order < ActiveRecord::Base\n-  belongs_to :customer\n+class Book < ActiveRecord::Base\n+  belongs_to :author\n end","path":"guides/source/association_basics.md","position":86,"original_position":86,"commit_id":"dda2e22ad527b0083054174ab6b51fa12c7bd428","original_commit_id":"dda2e22ad527b0083054174ab6b51fa12c7bd428","user":{"login":"amitkumarsuroliya","id":2434299,"avatar_url":"https://avatars.githubusercontent.com/u/2434299?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkumarsuroliya","html_url":"https://github.com/amitkumarsuroliya","followers_url":"https://api.github.com/users/amitkumarsuroliya/followers","following_url":"https://api.github.com/users/amitkumarsuroliya/following{/other_user}","gists_url":"https://api.github.com/users/amitkumarsuroliya/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkumarsuroliya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkumarsuroliya/subscriptions","organizations_url":"https://api.github.com/users/amitkumarsuroliya/orgs","repos_url":"https://api.github.com/users/amitkumarsuroliya/repos","events_url":"https://api.github.com/users/amitkumarsuroliya/events{/privacy}","received_events_url":"https://api.github.com/users/amitkumarsuroliya/received_events","type":"User","site_admin":false},"body":"Sorry @zzak........I am not getting, what you are trying to say here ?","created_at":"2015-09-08T18:52:17Z","updated_at":"2015-09-08T18:52:17Z","html_url":"https://github.com/rails/rails/pull/21555#discussion_r38964885","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/21555","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/38964885"},"html":{"href":"https://github.com/rails/rails/pull/21555#discussion_r38964885"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/21555"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/21555","id":44466969,"html_url":"https://github.com/rails/rails/pull/21555","diff_url":"https://github.com/rails/rails/pull/21555.diff","patch_url":"https://github.com/rails/rails/pull/21555.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/21555","number":21555,"state":"open","locked":false,"title":"Association Guide replaces Order as example with Author-Book Example …","user":{"login":"amitsuroliya","id":2149795,"avatar_url":"https://avatars.githubusercontent.com/u/2149795?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsuroliya","html_url":"https://github.com/amitsuroliya","followers_url":"https://api.github.com/users/amitsuroliya/followers","following_url":"https://api.github.com/users/amitsuroliya/following{/other_user}","gists_url":"https://api.github.com/users/amitsuroliya/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsuroliya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsuroliya/subscriptions","organizations_url":"https://api.github.com/users/amitsuroliya/orgs","repos_url":"https://api.github.com/users/amitsuroliya/repos","events_url":"https://api.github.com/users/amitsuroliya/events{/privacy}","received_events_url":"https://api.github.com/users/amitsuroliya/received_events","type":"User","site_admin":false},"body":"…[ci skip]\r\n\r\nfixes #21500","created_at":"2015-09-08T18:35:33Z","updated_at":"2015-09-08T18:52:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1284b597bebd382855b4e5eef40e558a0423fbc","assignee":{"login":"zzak","id":277819,"avatar_url":"https://avatars.githubusercontent.com/u/277819?v=3","gravatar_id":"","url":"https://api.github.com/users/zzak","html_url":"https://github.com/zzak","followers_url":"https://api.github.com/users/zzak/followers","following_url":"https://api.github.com/users/zzak/following{/other_user}","gists_url":"https://api.github.com/users/zzak/gists{/gist_id}","starred_url":"https://api.github.com/users/zzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzak/subscriptions","organizations_url":"https://api.github.com/users/zzak/orgs","repos_url":"https://api.github.com/users/zzak/repos","events_url":"https://api.github.com/users/zzak/events{/privacy}","received_events_url":"https://api.github.com/users/zzak/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/21555/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/21555/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/21555/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/dda2e22ad527b0083054174ab6b51fa12c7bd428","head":{"label":"amitsuroliya:associated_basics","ref":"associated_basics","sha":"dda2e22ad527b0083054174ab6b51fa12c7bd428","user":{"login":"amitsuroliya","id":2149795,"avatar_url":"https://avatars.githubusercontent.com/u/2149795?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsuroliya","html_url":"https://github.com/amitsuroliya","followers_url":"https://api.github.com/users/amitsuroliya/followers","following_url":"https://api.github.com/users/amitsuroliya/following{/other_user}","gists_url":"https://api.github.com/users/amitsuroliya/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsuroliya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsuroliya/subscriptions","organizations_url":"https://api.github.com/users/amitsuroliya/orgs","repos_url":"https://api.github.com/users/amitsuroliya/repos","events_url":"https://api.github.com/users/amitsuroliya/events{/privacy}","received_events_url":"https://api.github.com/users/amitsuroliya/received_events","type":"User","site_admin":false},"repo":{"id":5795254,"name":"rails","full_name":"amitsuroliya/rails","owner":{"login":"amitsuroliya","id":2149795,"avatar_url":"https://avatars.githubusercontent.com/u/2149795?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsuroliya","html_url":"https://github.com/amitsuroliya","followers_url":"https://api.github.com/users/amitsuroliya/followers","following_url":"https://api.github.com/users/amitsuroliya/following{/other_user}","gists_url":"https://api.github.com/users/amitsuroliya/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsuroliya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsuroliya/subscriptions","organizations_url":"https://api.github.com/users/amitsuroliya/orgs","repos_url":"https://api.github.com/users/amitsuroliya/repos","events_url":"https://api.github.com/users/amitsuroliya/events{/privacy}","received_events_url":"https://api.github.com/users/amitsuroliya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amitsuroliya/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/amitsuroliya/rails","forks_url":"https://api.github.com/repos/amitsuroliya/rails/forks","keys_url":"https://api.github.com/repos/amitsuroliya/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amitsuroliya/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amitsuroliya/rails/teams","hooks_url":"https://api.github.com/repos/amitsuroliya/rails/hooks","issue_events_url":"https://api.github.com/repos/amitsuroliya/rails/issues/events{/number}","events_url":"https://api.github.com/repos/amitsuroliya/rails/events","assignees_url":"https://api.github.com/repos/amitsuroliya/rails/assignees{/user}","branches_url":"https://api.github.com/repos/amitsuroliya/rails/branches{/branch}","tags_url":"https://api.github.com/repos/amitsuroliya/rails/tags","blobs_url":"https://api.github.com/repos/amitsuroliya/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amitsuroliya/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amitsuroliya/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/amitsuroliya/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amitsuroliya/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/amitsuroliya/rails/languages","stargazers_url":"https://api.github.com/repos/amitsuroliya/rails/stargazers","contributors_url":"https://api.github.com/repos/amitsuroliya/rails/contributors","subscribers_url":"https://api.github.com/repos/amitsuroliya/rails/subscribers","subscription_url":"https://api.github.com/repos/amitsuroliya/rails/subscription","commits_url":"https://api.github.com/repos/amitsuroliya/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/amitsuroliya/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/amitsuroliya/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/amitsuroliya/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/amitsuroliya/rails/contents/{+path}","compare_url":"https://api.github.com/repos/amitsuroliya/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amitsuroliya/rails/merges","archive_url":"https://api.github.com/repos/amitsuroliya/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amitsuroliya/rails/downloads","issues_url":"https://api.github.com/repos/amitsuroliya/rails/issues{/number}","pulls_url":"https://api.github.com/repos/amitsuroliya/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/amitsuroliya/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/amitsuroliya/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amitsuroliya/rails/labels{/name}","releases_url":"https://api.github.com/repos/amitsuroliya/rails/releases{/id}","created_at":"2012-09-13T13:48:15Z","updated_at":"2015-03-10T00:47:36Z","pushed_at":"2015-09-08T18:47:10Z","git_url":"git://github.com/amitsuroliya/rails.git","ssh_url":"git@github.com:amitsuroliya/rails.git","clone_url":"https://github.com/amitsuroliya/rails.git","svn_url":"https://github.com/amitsuroliya/rails","homepage":"http://rubyonrails.org","size":134810,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"72889a6be4ec4afd68d3e4c3ae972099e080478a","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-09-08T14:49:56Z","pushed_at":"2015-09-08T18:48:15Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":452423,"stargazers_count":27610,"watchers_count":27610,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11089,"mirror_url":null,"open_issues_count":902,"forks":11089,"open_issues":902,"watchers":27610,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/21555"},"html":{"href":"https://github.com/rails/rails/pull/21555"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/21555"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/21555/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/21555/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/21555/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/dda2e22ad527b0083054174ab6b51fa12c7bd428"}}}}