{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_59/pulls/comments/32902672","id":32902672,"diff_hunk":"@@ -0,0 +1,43 @@\n+class LessonsController < ApplicationController\n+  def index\n+    @lessons = current_user.lessons\n+  end\n+\n+  def show\n+    @category = Category.find params[:category_id]\n+    @lesson = Lesson.find params[:id]\n+  end\n+\n+  def create\n+    @category = Category.find params[:category_id]\n+    @lesson = @category.lessons.build user: current_user\n+    if @lesson.save\n+      redirect_to edit_category_lesson_path @category, @lesson","path":"app/controllers/lessons_controller.rb","position":15,"original_position":15,"commit_id":"48db17249e3eaec3973373b01fd304f20ea83f2f","original_commit_id":"48db17249e3eaec3973373b01fd304f20ea83f2f","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"flass message?","created_at":"2015-06-22T02:52:49Z","updated_at":"2015-06-22T02:52:49Z","html_url":"https://github.com/framgia/fels_59/pull/10#discussion_r32902672","pull_request_url":"https://api.github.com/repos/framgia/fels_59/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_59/pulls/comments/32902672"},"html":{"href":"https://github.com/framgia/fels_59/pull/10#discussion_r32902672"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_59/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_59/pulls/10","id":37859435,"html_url":"https://github.com/framgia/fels_59/pull/10","diff_url":"https://github.com/framgia/fels_59/pull/10.diff","patch_url":"https://github.com/framgia/fels_59/pull/10.patch","issue_url":"https://api.github.com/repos/framgia/fels_59/issues/10","number":10,"state":"open","locked":false,"title":"user-learn-word","user":{"login":"phamhuycuong","id":12694057,"avatar_url":"https://avatars.githubusercontent.com/u/12694057?v=3","gravatar_id":"","url":"https://api.github.com/users/phamhuycuong","html_url":"https://github.com/phamhuycuong","followers_url":"https://api.github.com/users/phamhuycuong/followers","following_url":"https://api.github.com/users/phamhuycuong/following{/other_user}","gists_url":"https://api.github.com/users/phamhuycuong/gists{/gist_id}","starred_url":"https://api.github.com/users/phamhuycuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamhuycuong/subscriptions","organizations_url":"https://api.github.com/users/phamhuycuong/orgs","repos_url":"https://api.github.com/users/phamhuycuong/repos","events_url":"https://api.github.com/users/phamhuycuong/events{/privacy}","received_events_url":"https://api.github.com/users/phamhuycuong/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-17T01:59:41Z","updated_at":"2015-06-22T02:52:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57ce128a3dc7a2713bf6359751dd71a4076fe4a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_59/pulls/10/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_59/pulls/10/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_59/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_59/issues/10/comments","statuses_url":"https://api.github.com/repos/framgia/fels_59/statuses/48db17249e3eaec3973373b01fd304f20ea83f2f","head":{"label":"phamhuycuong:user-learn-word","ref":"user-learn-word","sha":"48db17249e3eaec3973373b01fd304f20ea83f2f","user":{"login":"phamhuycuong","id":12694057,"avatar_url":"https://avatars.githubusercontent.com/u/12694057?v=3","gravatar_id":"","url":"https://api.github.com/users/phamhuycuong","html_url":"https://github.com/phamhuycuong","followers_url":"https://api.github.com/users/phamhuycuong/followers","following_url":"https://api.github.com/users/phamhuycuong/following{/other_user}","gists_url":"https://api.github.com/users/phamhuycuong/gists{/gist_id}","starred_url":"https://api.github.com/users/phamhuycuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamhuycuong/subscriptions","organizations_url":"https://api.github.com/users/phamhuycuong/orgs","repos_url":"https://api.github.com/users/phamhuycuong/repos","events_url":"https://api.github.com/users/phamhuycuong/events{/privacy}","received_events_url":"https://api.github.com/users/phamhuycuong/received_events","type":"User","site_admin":false},"repo":{"id":37114631,"name":"fels_59","full_name":"phamhuycuong/fels_59","owner":{"login":"phamhuycuong","id":12694057,"avatar_url":"https://avatars.githubusercontent.com/u/12694057?v=3","gravatar_id":"","url":"https://api.github.com/users/phamhuycuong","html_url":"https://github.com/phamhuycuong","followers_url":"https://api.github.com/users/phamhuycuong/followers","following_url":"https://api.github.com/users/phamhuycuong/following{/other_user}","gists_url":"https://api.github.com/users/phamhuycuong/gists{/gist_id}","starred_url":"https://api.github.com/users/phamhuycuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamhuycuong/subscriptions","organizations_url":"https://api.github.com/users/phamhuycuong/orgs","repos_url":"https://api.github.com/users/phamhuycuong/repos","events_url":"https://api.github.com/users/phamhuycuong/events{/privacy}","received_events_url":"https://api.github.com/users/phamhuycuong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phamhuycuong/fels_59","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/phamhuycuong/fels_59","forks_url":"https://api.github.com/repos/phamhuycuong/fels_59/forks","keys_url":"https://api.github.com/repos/phamhuycuong/fels_59/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phamhuycuong/fels_59/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phamhuycuong/fels_59/teams","hooks_url":"https://api.github.com/repos/phamhuycuong/fels_59/hooks","issue_events_url":"https://api.github.com/repos/phamhuycuong/fels_59/issues/events{/number}","events_url":"https://api.github.com/repos/phamhuycuong/fels_59/events","assignees_url":"https://api.github.com/repos/phamhuycuong/fels_59/assignees{/user}","branches_url":"https://api.github.com/repos/phamhuycuong/fels_59/branches{/branch}","tags_url":"https://api.github.com/repos/phamhuycuong/fels_59/tags","blobs_url":"https://api.github.com/repos/phamhuycuong/fels_59/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phamhuycuong/fels_59/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phamhuycuong/fels_59/git/refs{/sha}","trees_url":"https://api.github.com/repos/phamhuycuong/fels_59/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phamhuycuong/fels_59/statuses/{sha}","languages_url":"https://api.github.com/repos/phamhuycuong/fels_59/languages","stargazers_url":"https://api.github.com/repos/phamhuycuong/fels_59/stargazers","contributors_url":"https://api.github.com/repos/phamhuycuong/fels_59/contributors","subscribers_url":"https://api.github.com/repos/phamhuycuong/fels_59/subscribers","subscription_url":"https://api.github.com/repos/phamhuycuong/fels_59/subscription","commits_url":"https://api.github.com/repos/phamhuycuong/fels_59/commits{/sha}","git_commits_url":"https://api.github.com/repos/phamhuycuong/fels_59/git/commits{/sha}","comments_url":"https://api.github.com/repos/phamhuycuong/fels_59/comments{/number}","issue_comment_url":"https://api.github.com/repos/phamhuycuong/fels_59/issues/comments{/number}","contents_url":"https://api.github.com/repos/phamhuycuong/fels_59/contents/{+path}","compare_url":"https://api.github.com/repos/phamhuycuong/fels_59/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phamhuycuong/fels_59/merges","archive_url":"https://api.github.com/repos/phamhuycuong/fels_59/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phamhuycuong/fels_59/downloads","issues_url":"https://api.github.com/repos/phamhuycuong/fels_59/issues{/number}","pulls_url":"https://api.github.com/repos/phamhuycuong/fels_59/pulls{/number}","milestones_url":"https://api.github.com/repos/phamhuycuong/fels_59/milestones{/number}","notifications_url":"https://api.github.com/repos/phamhuycuong/fels_59/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phamhuycuong/fels_59/labels{/name}","releases_url":"https://api.github.com/repos/phamhuycuong/fels_59/releases{/id}","created_at":"2015-06-09T06:31:37Z","updated_at":"2015-06-08T06:27:27Z","pushed_at":"2015-06-22T02:47:36Z","git_url":"git://github.com/phamhuycuong/fels_59.git","ssh_url":"git@github.com:phamhuycuong/fels_59.git","clone_url":"https://github.com/phamhuycuong/fels_59.git","svn_url":"https://github.com/phamhuycuong/fels_59","homepage":null,"size":226,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"4bd67bb6efe90a9a6cee1b1f3377a063ccb4e4a2","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":37049777,"name":"fels_59","full_name":"framgia/fels_59","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_59","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_59","forks_url":"https://api.github.com/repos/framgia/fels_59/forks","keys_url":"https://api.github.com/repos/framgia/fels_59/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_59/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_59/teams","hooks_url":"https://api.github.com/repos/framgia/fels_59/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_59/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_59/events","assignees_url":"https://api.github.com/repos/framgia/fels_59/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_59/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_59/tags","blobs_url":"https://api.github.com/repos/framgia/fels_59/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_59/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_59/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_59/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_59/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_59/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_59/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_59/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_59/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_59/subscription","commits_url":"https://api.github.com/repos/framgia/fels_59/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_59/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_59/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_59/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_59/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_59/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_59/merges","archive_url":"https://api.github.com/repos/framgia/fels_59/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_59/downloads","issues_url":"https://api.github.com/repos/framgia/fels_59/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_59/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_59/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_59/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_59/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_59/releases{/id}","created_at":"2015-06-08T06:27:27Z","updated_at":"2015-06-08T06:27:27Z","pushed_at":"2015-06-22T02:47:36Z","git_url":"git://github.com/framgia/fels_59.git","ssh_url":"git@github.com:framgia/fels_59.git","clone_url":"https://github.com/framgia/fels_59.git","svn_url":"https://github.com/framgia/fels_59","homepage":null,"size":308,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_59/pulls/10"},"html":{"href":"https://github.com/framgia/fels_59/pull/10"},"issue":{"href":"https://api.github.com/repos/framgia/fels_59/issues/10"},"comments":{"href":"https://api.github.com/repos/framgia/fels_59/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_59/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_59/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_59/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_59/statuses/48db17249e3eaec3973373b01fd304f20ea83f2f"}}}}