{"action":"created","comment":{"url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/comments/23146313","id":23146313,"diff_hunk":"@@ -0,0 +1,186 @@\n+---\n+layout: chapter\n+title: Introduction\n+chapter: Introduction\n+---\n+## What is Rails?\n+\n+Ruby on Rails is a Model-View-Controller (MVC) framework written in Ruby,\n+a programming language that is similar to Python in terms of syntax.\n+The Rails aspect of Ruby on Rails is the framework that allows us to\n+create web applications and APIs.  The framework uses paradigms such as\n+convention over configuration (CoC) and don't repeat yourself (DRY).\n+\n+## What is Model-View-Controller (MVC)?\n+MVC is an architechture for software that consists of three components,\n+the Model, the View, and the Controller.  It allows an isolation between\n+what the users interact with and the logic that goes in the background.\n+\n+### 1. Model\n+In Rails, models are objects that are used to interact with the data that is\n+stored in the database.  Most of the logic goes into the model.\n+\n+### 2. View\n+What the user interacts with.  Consists of the HTML, CSS, and javascript to\n+display the data.\n+\n+### 3. Controller\n+The connection between the models and the views.  It usually takes the model's\n+data and populates the views with it.\n+\n+### 4. MVC Image\n+![mvc-image](http://railstutorial.org/images/figures/mvc_detailed-full.png)","path":"chapters/introduction/index.md","position":32,"original_position":32,"commit_id":"9a41ccea8399a74658287d1fd3e77dc61c45071f","original_commit_id":"9a41ccea8399a74658287d1fd3e77dc61c45071f","user":{"login":"negativetwelve","id":1435378,"avatar_url":"https://avatars.githubusercontent.com/u/1435378?v=3","gravatar_id":"","url":"https://api.github.com/users/negativetwelve","html_url":"https://github.com/negativetwelve","followers_url":"https://api.github.com/users/negativetwelve/followers","following_url":"https://api.github.com/users/negativetwelve/following{/other_user}","gists_url":"https://api.github.com/users/negativetwelve/gists{/gist_id}","starred_url":"https://api.github.com/users/negativetwelve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negativetwelve/subscriptions","organizations_url":"https://api.github.com/users/negativetwelve/orgs","repos_url":"https://api.github.com/users/negativetwelve/repos","events_url":"https://api.github.com/users/negativetwelve/events{/privacy}","received_events_url":"https://api.github.com/users/negativetwelve/received_events","type":"User","site_admin":false},"body":"we should be adding these images to our own repo","created_at":"2015-01-19T07:57:57Z","updated_at":"2015-01-19T07:57:57Z","html_url":"https://github.com/negativetwelve/therailsbook.com/pull/2#discussion_r23146313","pull_request_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/comments/23146313"},"html":{"href":"https://github.com/negativetwelve/therailsbook.com/pull/2#discussion_r23146313"},"pull_request":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2","id":27587194,"html_url":"https://github.com/negativetwelve/therailsbook.com/pull/2","diff_url":"https://github.com/negativetwelve/therailsbook.com/pull/2.diff","patch_url":"https://github.com/negativetwelve/therailsbook.com/pull/2.patch","issue_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/2","number":2,"state":"open","locked":false,"title":"Introduction","user":{"login":"chenhoward","id":5416504,"avatar_url":"https://avatars.githubusercontent.com/u/5416504?v=3","gravatar_id":"","url":"https://api.github.com/users/chenhoward","html_url":"https://github.com/chenhoward","followers_url":"https://api.github.com/users/chenhoward/followers","following_url":"https://api.github.com/users/chenhoward/following{/other_user}","gists_url":"https://api.github.com/users/chenhoward/gists{/gist_id}","starred_url":"https://api.github.com/users/chenhoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenhoward/subscriptions","organizations_url":"https://api.github.com/users/chenhoward/orgs","repos_url":"https://api.github.com/users/chenhoward/repos","events_url":"https://api.github.com/users/chenhoward/events{/privacy}","received_events_url":"https://api.github.com/users/chenhoward/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-19T06:24:43Z","updated_at":"2015-01-19T07:57:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3715b03deda5720669b58c4f485533bf382f5ad3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2/commits","review_comments_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2/comments","review_comment_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/comments/{number}","comments_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/2/comments","statuses_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/statuses/9a41ccea8399a74658287d1fd3e77dc61c45071f","head":{"label":"negativetwelve:howard/introduction","ref":"howard/introduction","sha":"9a41ccea8399a74658287d1fd3e77dc61c45071f","user":{"login":"negativetwelve","id":1435378,"avatar_url":"https://avatars.githubusercontent.com/u/1435378?v=3","gravatar_id":"","url":"https://api.github.com/users/negativetwelve","html_url":"https://github.com/negativetwelve","followers_url":"https://api.github.com/users/negativetwelve/followers","following_url":"https://api.github.com/users/negativetwelve/following{/other_user}","gists_url":"https://api.github.com/users/negativetwelve/gists{/gist_id}","starred_url":"https://api.github.com/users/negativetwelve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negativetwelve/subscriptions","organizations_url":"https://api.github.com/users/negativetwelve/orgs","repos_url":"https://api.github.com/users/negativetwelve/repos","events_url":"https://api.github.com/users/negativetwelve/events{/privacy}","received_events_url":"https://api.github.com/users/negativetwelve/received_events","type":"User","site_admin":false},"repo":{"id":17703614,"name":"therailsbook.com","full_name":"negativetwelve/therailsbook.com","owner":{"login":"negativetwelve","id":1435378,"avatar_url":"https://avatars.githubusercontent.com/u/1435378?v=3","gravatar_id":"","url":"https://api.github.com/users/negativetwelve","html_url":"https://github.com/negativetwelve","followers_url":"https://api.github.com/users/negativetwelve/followers","following_url":"https://api.github.com/users/negativetwelve/following{/other_user}","gists_url":"https://api.github.com/users/negativetwelve/gists{/gist_id}","starred_url":"https://api.github.com/users/negativetwelve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negativetwelve/subscriptions","organizations_url":"https://api.github.com/users/negativetwelve/orgs","repos_url":"https://api.github.com/users/negativetwelve/repos","events_url":"https://api.github.com/users/negativetwelve/events{/privacy}","received_events_url":"https://api.github.com/users/negativetwelve/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/negativetwelve/therailsbook.com","description":"The Ruby on Rails Book","fork":false,"url":"https://api.github.com/repos/negativetwelve/therailsbook.com","forks_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/forks","keys_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/teams","hooks_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/hooks","issue_events_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/events{/number}","events_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/events","assignees_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/assignees{/user}","branches_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/branches{/branch}","tags_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/tags","blobs_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/statuses/{sha}","languages_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/languages","stargazers_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/stargazers","contributors_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/contributors","subscribers_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/subscribers","subscription_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/subscription","commits_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/comments/{number}","contents_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/contents/{+path}","compare_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/merges","archive_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/downloads","issues_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues{/number}","pulls_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls{/number}","milestones_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/milestones{/number}","notifications_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/labels{/name}","releases_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/releases{/id}","created_at":"2014-03-13T08:50:32Z","updated_at":"2014-03-17T09:16:30Z","pushed_at":"2015-01-19T06:23:48Z","git_url":"git://github.com/negativetwelve/therailsbook.com.git","ssh_url":"git@github.com:negativetwelve/therailsbook.com.git","clone_url":"https://github.com/negativetwelve/therailsbook.com.git","svn_url":"https://github.com/negativetwelve/therailsbook.com","homepage":"www.therailsbook.com","size":336,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"negativetwelve:master","ref":"master","sha":"ff0ec4ac13fa938da37e6b8b15f47fbedb26b235","user":{"login":"negativetwelve","id":1435378,"avatar_url":"https://avatars.githubusercontent.com/u/1435378?v=3","gravatar_id":"","url":"https://api.github.com/users/negativetwelve","html_url":"https://github.com/negativetwelve","followers_url":"https://api.github.com/users/negativetwelve/followers","following_url":"https://api.github.com/users/negativetwelve/following{/other_user}","gists_url":"https://api.github.com/users/negativetwelve/gists{/gist_id}","starred_url":"https://api.github.com/users/negativetwelve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negativetwelve/subscriptions","organizations_url":"https://api.github.com/users/negativetwelve/orgs","repos_url":"https://api.github.com/users/negativetwelve/repos","events_url":"https://api.github.com/users/negativetwelve/events{/privacy}","received_events_url":"https://api.github.com/users/negativetwelve/received_events","type":"User","site_admin":false},"repo":{"id":17703614,"name":"therailsbook.com","full_name":"negativetwelve/therailsbook.com","owner":{"login":"negativetwelve","id":1435378,"avatar_url":"https://avatars.githubusercontent.com/u/1435378?v=3","gravatar_id":"","url":"https://api.github.com/users/negativetwelve","html_url":"https://github.com/negativetwelve","followers_url":"https://api.github.com/users/negativetwelve/followers","following_url":"https://api.github.com/users/negativetwelve/following{/other_user}","gists_url":"https://api.github.com/users/negativetwelve/gists{/gist_id}","starred_url":"https://api.github.com/users/negativetwelve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negativetwelve/subscriptions","organizations_url":"https://api.github.com/users/negativetwelve/orgs","repos_url":"https://api.github.com/users/negativetwelve/repos","events_url":"https://api.github.com/users/negativetwelve/events{/privacy}","received_events_url":"https://api.github.com/users/negativetwelve/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/negativetwelve/therailsbook.com","description":"The Ruby on Rails Book","fork":false,"url":"https://api.github.com/repos/negativetwelve/therailsbook.com","forks_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/forks","keys_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/teams","hooks_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/hooks","issue_events_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/events{/number}","events_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/events","assignees_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/assignees{/user}","branches_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/branches{/branch}","tags_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/tags","blobs_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/statuses/{sha}","languages_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/languages","stargazers_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/stargazers","contributors_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/contributors","subscribers_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/subscribers","subscription_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/subscription","commits_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/comments/{number}","contents_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/contents/{+path}","compare_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/merges","archive_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/downloads","issues_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues{/number}","pulls_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls{/number}","milestones_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/milestones{/number}","notifications_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/labels{/name}","releases_url":"https://api.github.com/repos/negativetwelve/therailsbook.com/releases{/id}","created_at":"2014-03-13T08:50:32Z","updated_at":"2014-03-17T09:16:30Z","pushed_at":"2015-01-19T06:23:48Z","git_url":"git://github.com/negativetwelve/therailsbook.com.git","ssh_url":"git@github.com:negativetwelve/therailsbook.com.git","clone_url":"https://github.com/negativetwelve/therailsbook.com.git","svn_url":"https://github.com/negativetwelve/therailsbook.com","homepage":"www.therailsbook.com","size":336,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2"},"html":{"href":"https://github.com/negativetwelve/therailsbook.com/pull/2"},"issue":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/2"},"comments":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/negativetwelve/therailsbook.com/statuses/9a41ccea8399a74658287d1fd3e77dc61c45071f"}}}}