{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/22841460","id":22841460,"diff_hunk":"@@ -63,7 +63,7 @@ The [Layouts & Rendering Guide](layouts_and_rendering.html) explains this in mor\n \n `ApplicationController` inherits from `ActionController::Base`, which defines a number of helpful methods. This guide will cover some of these, but if you're curious to see what's in there, you can see all of them in the API documentation or in the source itself.\n \n-Only public methods are callable as actions. It is a best practice to lower the visibility of methods which are not intended to be actions, like auxiliary methods or filters.\n+Only public methods are callable as actions. It is a best practice to lower the visibility of methods (with `private`) which are not intended to be actions, like auxiliary methods or filters.","path":"guides/source/action_controller_overview.md","position":46,"original_position":46,"commit_id":"29bbc8ab0ee0bf590c20dd1a78d57a8b83a5c50c","original_commit_id":"29bbc8ab0ee0bf590c20dd1a78d57a8b83a5c50c","user":{"login":"georgeclaghorn","id":94129,"avatar_url":"https://avatars.githubusercontent.com/u/94129?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeclaghorn","html_url":"https://github.com/georgeclaghorn","followers_url":"https://api.github.com/users/georgeclaghorn/followers","following_url":"https://api.github.com/users/georgeclaghorn/following{/other_user}","gists_url":"https://api.github.com/users/georgeclaghorn/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeclaghorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeclaghorn/subscriptions","organizations_url":"https://api.github.com/users/georgeclaghorn/orgs","repos_url":"https://api.github.com/users/georgeclaghorn/repos","events_url":"https://api.github.com/users/georgeclaghorn/events{/privacy}","received_events_url":"https://api.github.com/users/georgeclaghorn/received_events","type":"User","site_admin":false},"body":"If we're going to be specific, we should also mention that `protected` is an acceptable level of visibility for auxiliary methods.","created_at":"2015-01-13T03:22:54Z","updated_at":"2015-01-13T03:22:54Z","html_url":"https://github.com/rails/rails/pull/18459#discussion_r22841460","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/18459","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/22841460"},"html":{"href":"https://github.com/rails/rails/pull/18459#discussion_r22841460"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/18459"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/18459","id":27170521,"html_url":"https://github.com/rails/rails/pull/18459","diff_url":"https://github.com/rails/rails/pull/18459.diff","patch_url":"https://github.com/rails/rails/pull/18459.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/18459","number":18459,"state":"open","locked":false,"title":"Action Controller guide edits for grammar and clarity","user":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"body":"This PR updates the Action Controller guide with some minor grammar and clarity improvements.","created_at":"2015-01-12T00:06:15Z","updated_at":"2015-01-13T03:22:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71ec0e3c9532b2cf1895d8d606fec5e487a74d92","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/18459/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/18459/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rails/rails/issues/18459/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/29bbc8ab0ee0bf590c20dd1a78d57a8b83a5c50c","head":{"label":"cantino:action_controller_guide_edits","ref":"action_controller_guide_edits","sha":"29bbc8ab0ee0bf590c20dd1a78d57a8b83a5c50c","user":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"repo":{"id":29109506,"name":"rails","full_name":"cantino/rails","owner":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cantino/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/cantino/rails","forks_url":"https://api.github.com/repos/cantino/rails/forks","keys_url":"https://api.github.com/repos/cantino/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cantino/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cantino/rails/teams","hooks_url":"https://api.github.com/repos/cantino/rails/hooks","issue_events_url":"https://api.github.com/repos/cantino/rails/issues/events{/number}","events_url":"https://api.github.com/repos/cantino/rails/events","assignees_url":"https://api.github.com/repos/cantino/rails/assignees{/user}","branches_url":"https://api.github.com/repos/cantino/rails/branches{/branch}","tags_url":"https://api.github.com/repos/cantino/rails/tags","blobs_url":"https://api.github.com/repos/cantino/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cantino/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cantino/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/cantino/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cantino/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/cantino/rails/languages","stargazers_url":"https://api.github.com/repos/cantino/rails/stargazers","contributors_url":"https://api.github.com/repos/cantino/rails/contributors","subscribers_url":"https://api.github.com/repos/cantino/rails/subscribers","subscription_url":"https://api.github.com/repos/cantino/rails/subscription","commits_url":"https://api.github.com/repos/cantino/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/cantino/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/cantino/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/cantino/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/cantino/rails/contents/{+path}","compare_url":"https://api.github.com/repos/cantino/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cantino/rails/merges","archive_url":"https://api.github.com/repos/cantino/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cantino/rails/downloads","issues_url":"https://api.github.com/repos/cantino/rails/issues{/number}","pulls_url":"https://api.github.com/repos/cantino/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/cantino/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/cantino/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cantino/rails/labels{/name}","releases_url":"https://api.github.com/repos/cantino/rails/releases{/id}","created_at":"2015-01-11T23:06:51Z","updated_at":"2015-01-11T23:07:15Z","pushed_at":"2015-01-12T00:18:38Z","git_url":"git://github.com/cantino/rails.git","ssh_url":"git@github.com:cantino/rails.git","clone_url":"https://github.com/cantino/rails.git","svn_url":"https://github.com/cantino/rails","homepage":"http://rubyonrails.org","size":126243,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"3adb05565c7de3ba9dd4117b8a3a631a0b238b8c","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-01-13T02:13:49Z","pushed_at":"2015-01-12T19:06:01Z","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":376843,"stargazers_count":24559,"watchers_count":24559,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9488,"mirror_url":null,"open_issues_count":740,"forks":9488,"open_issues":740,"watchers":24559,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/18459"},"html":{"href":"https://github.com/rails/rails/pull/18459"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/18459"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/18459/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/18459/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/18459/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/29bbc8ab0ee0bf590c20dd1a78d57a8b83a5c50c"}}}}