{"action":"created","comment":{"url":"https://api.github.com/repos/GretchenHK/flixter/pulls/comments/41716435","id":41716435,"diff_hunk":"@@ -1,12 +1,15 @@\n class Instructor::SectionsController < ApplicationController\n-\tbefore_action :authenticate_user!\n-\tbefore_action :require_authorized_for_current_course, :only => [:create]\n-\tbefore_action :require_authorized_for_current_section, :only => [:update]\n+  before_action :authenticate_user!\n+  before_action :require_authorized_for_current_course, :only => [:create]\n+  before_action :require_authorized_for_current_section, :only => [:update]\n \n-  \n-  def create\t\n-   \t \t@section = current_course.sections.create(section_params)\n-    \tredirect_to instructor_course_path(current_course)\n+  def new\n+    @section = Section.new\n+  end","path":"app/controllers/instructor/sections_controller.rb","position":15,"original_position":15,"commit_id":"f885e1e462c3400275229ca7bf6123a23d29b920","original_commit_id":"f885e1e462c3400275229ca7bf6123a23d29b920","user":{"login":"kenmazaika","id":233615,"avatar_url":"https://avatars.githubusercontent.com/u/233615?v=3","gravatar_id":"","url":"https://api.github.com/users/kenmazaika","html_url":"https://github.com/kenmazaika","followers_url":"https://api.github.com/users/kenmazaika/followers","following_url":"https://api.github.com/users/kenmazaika/following{/other_user}","gists_url":"https://api.github.com/users/kenmazaika/gists{/gist_id}","starred_url":"https://api.github.com/users/kenmazaika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenmazaika/subscriptions","organizations_url":"https://api.github.com/users/kenmazaika/orgs","repos_url":"https://api.github.com/users/kenmazaika/repos","events_url":"https://api.github.com/users/kenmazaika/events{/privacy}","received_events_url":"https://api.github.com/users/kenmazaika/received_events","type":"User","site_admin":false},"body":"I added this section here:\r\n\r\n```\r\n  def new\r\n    @section = Section.new\r\nend\r\n```\r\n\r\nOtherwise you get errors in the simple form.","created_at":"2015-10-11T22:41:37Z","updated_at":"2015-10-11T22:41:37Z","html_url":"https://github.com/GretchenHK/flixter/pull/1#discussion_r41716435","pull_request_url":"https://api.github.com/repos/GretchenHK/flixter/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/GretchenHK/flixter/pulls/comments/41716435"},"html":{"href":"https://github.com/GretchenHK/flixter/pull/1#discussion_r41716435"},"pull_request":{"href":"https://api.github.com/repos/GretchenHK/flixter/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/GretchenHK/flixter/pulls/1","id":47377289,"html_url":"https://github.com/GretchenHK/flixter/pull/1","diff_url":"https://github.com/GretchenHK/flixter/pull/1.diff","patch_url":"https://github.com/GretchenHK/flixter/pull/1.patch","issue_url":"https://api.github.com/repos/GretchenHK/flixter/issues/1","number":1,"state":"open","locked":false,"title":"Allow section reordering.","user":{"login":"kenmazaika","id":233615,"avatar_url":"https://avatars.githubusercontent.com/u/233615?v=3","gravatar_id":"","url":"https://api.github.com/users/kenmazaika","html_url":"https://github.com/kenmazaika","followers_url":"https://api.github.com/users/kenmazaika/followers","following_url":"https://api.github.com/users/kenmazaika/following{/other_user}","gists_url":"https://api.github.com/users/kenmazaika/gists{/gist_id}","starred_url":"https://api.github.com/users/kenmazaika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenmazaika/subscriptions","organizations_url":"https://api.github.com/users/kenmazaika/orgs","repos_url":"https://api.github.com/users/kenmazaika/repos","events_url":"https://api.github.com/users/kenmazaika/events{/privacy}","received_events_url":"https://api.github.com/users/kenmazaika/received_events","type":"User","site_admin":false},"body":"Here are the changes you need to make to your code on GitHub\r\n\r\n------\r\n\r\nAs a side note, this is a GitHub pull request.  This is how I can show you code that I think you should add to your project.  It allows you to look at the code, you'll see the green code is code that's added and the red is code that's deleted.  The \"Files changed\" tab will show you the code.\r\n\r\n\"Commits\" will show you a listing of the individual commits I'm trying to send you.  And this tab, the conversation tab you can use to communicate about the change.\r\n\r\nIf you want to suck in all this code into your project you can by pressing the green merge button.  If you want to take these changes, I would suggest first you remove all of the local changes you've done:\r\n\r\n```\r\ngit reset --hard\r\n```\r\n\r\nAfter you press the merge button, you'll have to update your web dev environment to have the latest updates from GitHub and to do that you can run this command:\r\n\r\n```\r\ngit pull origin master\r\n```\r\n\r\nHope this helps.\r\n","created_at":"2015-10-11T22:40:27Z","updated_at":"2015-10-11T22:41:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa17149015c54ae2735b3d3c4b74418c3914f5e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GretchenHK/flixter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/GretchenHK/flixter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/GretchenHK/flixter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GretchenHK/flixter/issues/1/comments","statuses_url":"https://api.github.com/repos/GretchenHK/flixter/statuses/f885e1e462c3400275229ca7bf6123a23d29b920","head":{"label":"kenmazaika:fix-section-order","ref":"fix-section-order","sha":"f885e1e462c3400275229ca7bf6123a23d29b920","user":{"login":"kenmazaika","id":233615,"avatar_url":"https://avatars.githubusercontent.com/u/233615?v=3","gravatar_id":"","url":"https://api.github.com/users/kenmazaika","html_url":"https://github.com/kenmazaika","followers_url":"https://api.github.com/users/kenmazaika/followers","following_url":"https://api.github.com/users/kenmazaika/following{/other_user}","gists_url":"https://api.github.com/users/kenmazaika/gists{/gist_id}","starred_url":"https://api.github.com/users/kenmazaika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenmazaika/subscriptions","organizations_url":"https://api.github.com/users/kenmazaika/orgs","repos_url":"https://api.github.com/users/kenmazaika/repos","events_url":"https://api.github.com/users/kenmazaika/events{/privacy}","received_events_url":"https://api.github.com/users/kenmazaika/received_events","type":"User","site_admin":false},"repo":{"id":44072437,"name":"flixter-7","full_name":"kenmazaika/flixter-7","owner":{"login":"kenmazaika","id":233615,"avatar_url":"https://avatars.githubusercontent.com/u/233615?v=3","gravatar_id":"","url":"https://api.github.com/users/kenmazaika","html_url":"https://github.com/kenmazaika","followers_url":"https://api.github.com/users/kenmazaika/followers","following_url":"https://api.github.com/users/kenmazaika/following{/other_user}","gists_url":"https://api.github.com/users/kenmazaika/gists{/gist_id}","starred_url":"https://api.github.com/users/kenmazaika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenmazaika/subscriptions","organizations_url":"https://api.github.com/users/kenmazaika/orgs","repos_url":"https://api.github.com/users/kenmazaika/repos","events_url":"https://api.github.com/users/kenmazaika/events{/privacy}","received_events_url":"https://api.github.com/users/kenmazaika/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kenmazaika/flixter-7","description":"","fork":true,"url":"https://api.github.com/repos/kenmazaika/flixter-7","forks_url":"https://api.github.com/repos/kenmazaika/flixter-7/forks","keys_url":"https://api.github.com/repos/kenmazaika/flixter-7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kenmazaika/flixter-7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kenmazaika/flixter-7/teams","hooks_url":"https://api.github.com/repos/kenmazaika/flixter-7/hooks","issue_events_url":"https://api.github.com/repos/kenmazaika/flixter-7/issues/events{/number}","events_url":"https://api.github.com/repos/kenmazaika/flixter-7/events","assignees_url":"https://api.github.com/repos/kenmazaika/flixter-7/assignees{/user}","branches_url":"https://api.github.com/repos/kenmazaika/flixter-7/branches{/branch}","tags_url":"https://api.github.com/repos/kenmazaika/flixter-7/tags","blobs_url":"https://api.github.com/repos/kenmazaika/flixter-7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kenmazaika/flixter-7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kenmazaika/flixter-7/git/refs{/sha}","trees_url":"https://api.github.com/repos/kenmazaika/flixter-7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kenmazaika/flixter-7/statuses/{sha}","languages_url":"https://api.github.com/repos/kenmazaika/flixter-7/languages","stargazers_url":"https://api.github.com/repos/kenmazaika/flixter-7/stargazers","contributors_url":"https://api.github.com/repos/kenmazaika/flixter-7/contributors","subscribers_url":"https://api.github.com/repos/kenmazaika/flixter-7/subscribers","subscription_url":"https://api.github.com/repos/kenmazaika/flixter-7/subscription","commits_url":"https://api.github.com/repos/kenmazaika/flixter-7/commits{/sha}","git_commits_url":"https://api.github.com/repos/kenmazaika/flixter-7/git/commits{/sha}","comments_url":"https://api.github.com/repos/kenmazaika/flixter-7/comments{/number}","issue_comment_url":"https://api.github.com/repos/kenmazaika/flixter-7/issues/comments{/number}","contents_url":"https://api.github.com/repos/kenmazaika/flixter-7/contents/{+path}","compare_url":"https://api.github.com/repos/kenmazaika/flixter-7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kenmazaika/flixter-7/merges","archive_url":"https://api.github.com/repos/kenmazaika/flixter-7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kenmazaika/flixter-7/downloads","issues_url":"https://api.github.com/repos/kenmazaika/flixter-7/issues{/number}","pulls_url":"https://api.github.com/repos/kenmazaika/flixter-7/pulls{/number}","milestones_url":"https://api.github.com/repos/kenmazaika/flixter-7/milestones{/number}","notifications_url":"https://api.github.com/repos/kenmazaika/flixter-7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kenmazaika/flixter-7/labels{/name}","releases_url":"https://api.github.com/repos/kenmazaika/flixter-7/releases{/id}","created_at":"2015-10-11T22:38:18Z","updated_at":"2015-10-11T22:38:19Z","pushed_at":"2015-10-11T22:39:05Z","git_url":"git://github.com/kenmazaika/flixter-7.git","ssh_url":"git@github.com:kenmazaika/flixter-7.git","clone_url":"https://github.com/kenmazaika/flixter-7.git","svn_url":"https://github.com/kenmazaika/flixter-7","homepage":null,"size":5244,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"GretchenHK:master","ref":"master","sha":"72050884d4b3eeb50fccb91e1022a6d075e2700f","user":{"login":"GretchenHK","id":13379964,"avatar_url":"https://avatars.githubusercontent.com/u/13379964?v=3","gravatar_id":"","url":"https://api.github.com/users/GretchenHK","html_url":"https://github.com/GretchenHK","followers_url":"https://api.github.com/users/GretchenHK/followers","following_url":"https://api.github.com/users/GretchenHK/following{/other_user}","gists_url":"https://api.github.com/users/GretchenHK/gists{/gist_id}","starred_url":"https://api.github.com/users/GretchenHK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GretchenHK/subscriptions","organizations_url":"https://api.github.com/users/GretchenHK/orgs","repos_url":"https://api.github.com/users/GretchenHK/repos","events_url":"https://api.github.com/users/GretchenHK/events{/privacy}","received_events_url":"https://api.github.com/users/GretchenHK/received_events","type":"User","site_admin":false},"repo":{"id":43027096,"name":"flixter","full_name":"GretchenHK/flixter","owner":{"login":"GretchenHK","id":13379964,"avatar_url":"https://avatars.githubusercontent.com/u/13379964?v=3","gravatar_id":"","url":"https://api.github.com/users/GretchenHK","html_url":"https://github.com/GretchenHK","followers_url":"https://api.github.com/users/GretchenHK/followers","following_url":"https://api.github.com/users/GretchenHK/following{/other_user}","gists_url":"https://api.github.com/users/GretchenHK/gists{/gist_id}","starred_url":"https://api.github.com/users/GretchenHK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GretchenHK/subscriptions","organizations_url":"https://api.github.com/users/GretchenHK/orgs","repos_url":"https://api.github.com/users/GretchenHK/repos","events_url":"https://api.github.com/users/GretchenHK/events{/privacy}","received_events_url":"https://api.github.com/users/GretchenHK/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GretchenHK/flixter","description":"","fork":false,"url":"https://api.github.com/repos/GretchenHK/flixter","forks_url":"https://api.github.com/repos/GretchenHK/flixter/forks","keys_url":"https://api.github.com/repos/GretchenHK/flixter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GretchenHK/flixter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GretchenHK/flixter/teams","hooks_url":"https://api.github.com/repos/GretchenHK/flixter/hooks","issue_events_url":"https://api.github.com/repos/GretchenHK/flixter/issues/events{/number}","events_url":"https://api.github.com/repos/GretchenHK/flixter/events","assignees_url":"https://api.github.com/repos/GretchenHK/flixter/assignees{/user}","branches_url":"https://api.github.com/repos/GretchenHK/flixter/branches{/branch}","tags_url":"https://api.github.com/repos/GretchenHK/flixter/tags","blobs_url":"https://api.github.com/repos/GretchenHK/flixter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GretchenHK/flixter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GretchenHK/flixter/git/refs{/sha}","trees_url":"https://api.github.com/repos/GretchenHK/flixter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GretchenHK/flixter/statuses/{sha}","languages_url":"https://api.github.com/repos/GretchenHK/flixter/languages","stargazers_url":"https://api.github.com/repos/GretchenHK/flixter/stargazers","contributors_url":"https://api.github.com/repos/GretchenHK/flixter/contributors","subscribers_url":"https://api.github.com/repos/GretchenHK/flixter/subscribers","subscription_url":"https://api.github.com/repos/GretchenHK/flixter/subscription","commits_url":"https://api.github.com/repos/GretchenHK/flixter/commits{/sha}","git_commits_url":"https://api.github.com/repos/GretchenHK/flixter/git/commits{/sha}","comments_url":"https://api.github.com/repos/GretchenHK/flixter/comments{/number}","issue_comment_url":"https://api.github.com/repos/GretchenHK/flixter/issues/comments{/number}","contents_url":"https://api.github.com/repos/GretchenHK/flixter/contents/{+path}","compare_url":"https://api.github.com/repos/GretchenHK/flixter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GretchenHK/flixter/merges","archive_url":"https://api.github.com/repos/GretchenHK/flixter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GretchenHK/flixter/downloads","issues_url":"https://api.github.com/repos/GretchenHK/flixter/issues{/number}","pulls_url":"https://api.github.com/repos/GretchenHK/flixter/pulls{/number}","milestones_url":"https://api.github.com/repos/GretchenHK/flixter/milestones{/number}","notifications_url":"https://api.github.com/repos/GretchenHK/flixter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GretchenHK/flixter/labels{/name}","releases_url":"https://api.github.com/repos/GretchenHK/flixter/releases{/id}","created_at":"2015-09-23T21:08:12Z","updated_at":"2015-09-23T21:16:12Z","pushed_at":"2015-10-11T22:40:28Z","git_url":"git://github.com/GretchenHK/flixter.git","ssh_url":"git@github.com:GretchenHK/flixter.git","clone_url":"https://github.com/GretchenHK/flixter.git","svn_url":"https://github.com/GretchenHK/flixter","homepage":null,"size":5244,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GretchenHK/flixter/pulls/1"},"html":{"href":"https://github.com/GretchenHK/flixter/pull/1"},"issue":{"href":"https://api.github.com/repos/GretchenHK/flixter/issues/1"},"comments":{"href":"https://api.github.com/repos/GretchenHK/flixter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/GretchenHK/flixter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/GretchenHK/flixter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GretchenHK/flixter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/GretchenHK/flixter/statuses/f885e1e462c3400275229ca7bf6123a23d29b920"}}}}