{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_53/pulls/comments/29018638","id":29018638,"diff_hunk":"@@ -0,0 +1,45 @@\n+class Admin::WordsController < Admin::AdminController\n+  def index   \n+    @words = Word.paginate page: params[:page], per_page: 15\n+  end\n+\n+  def new\n+    @word = Word.new\n+    2.times{@word.answers.build}\n+  end\n+\n+  def edit\n+    @word = Word.find params[:id]\n+  end\n+\n+  def create\n+    @word = Word.new word_params\n+    if @word.save\n+      redirect_to admin_words_path\n+    else\n+      render \"new\"\n+    end\n+  end\n+\n+  def update\n+    @word = Word.find params[:id]\n+","path":"app/controllers/admin/words_controller.rb","position":26,"original_position":26,"commit_id":"d16a9cdeb3b64e5054adc1d7218f47dccc46ed3d","original_commit_id":"d16a9cdeb3b64e5054adc1d7218f47dccc46ed3d","user":{"login":"PhamVanTung","id":11971984,"avatar_url":"https://avatars.githubusercontent.com/u/11971984?v=3","gravatar_id":"","url":"https://api.github.com/users/PhamVanTung","html_url":"https://github.com/PhamVanTung","followers_url":"https://api.github.com/users/PhamVanTung/followers","following_url":"https://api.github.com/users/PhamVanTung/following{/other_user}","gists_url":"https://api.github.com/users/PhamVanTung/gists{/gist_id}","starred_url":"https://api.github.com/users/PhamVanTung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhamVanTung/subscriptions","organizations_url":"https://api.github.com/users/PhamVanTung/orgs","repos_url":"https://api.github.com/users/PhamVanTung/repos","events_url":"https://api.github.com/users/PhamVanTung/events{/privacy}","received_events_url":"https://api.github.com/users/PhamVanTung/received_events","type":"User","site_admin":false},"body":"remove line","created_at":"2015-04-24T01:42:41Z","updated_at":"2015-04-24T01:42:41Z","html_url":"https://github.com/framgia/fels_53/pull/7#discussion_r29018638","pull_request_url":"https://api.github.com/repos/framgia/fels_53/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_53/pulls/comments/29018638"},"html":{"href":"https://github.com/framgia/fels_53/pull/7#discussion_r29018638"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_53/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_53/pulls/7","id":33918900,"html_url":"https://github.com/framgia/fels_53/pull/7","diff_url":"https://github.com/framgia/fels_53/pull/7.diff","patch_url":"https://github.com/framgia/fels_53/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/fels_53/issues/7","number":7,"state":"open","locked":false,"title":"Admin manager","user":{"login":"phamkykhoi","id":8532305,"avatar_url":"https://avatars.githubusercontent.com/u/8532305?v=3","gravatar_id":"","url":"https://api.github.com/users/phamkykhoi","html_url":"https://github.com/phamkykhoi","followers_url":"https://api.github.com/users/phamkykhoi/followers","following_url":"https://api.github.com/users/phamkykhoi/following{/other_user}","gists_url":"https://api.github.com/users/phamkykhoi/gists{/gist_id}","starred_url":"https://api.github.com/users/phamkykhoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamkykhoi/subscriptions","organizations_url":"https://api.github.com/users/phamkykhoi/orgs","repos_url":"https://api.github.com/users/phamkykhoi/repos","events_url":"https://api.github.com/users/phamkykhoi/events{/privacy}","received_events_url":"https://api.github.com/users/phamkykhoi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-23T02:20:07Z","updated_at":"2015-04-24T01:42:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b7fef1ff80336c19b8c370a5f5682cb669214b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_53/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_53/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_53/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_53/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/fels_53/statuses/d16a9cdeb3b64e5054adc1d7218f47dccc46ed3d","head":{"label":"Data-Web:admin-manager","ref":"admin-manager","sha":"d16a9cdeb3b64e5054adc1d7218f47dccc46ed3d","user":{"login":"Data-Web","id":8532311,"avatar_url":"https://avatars.githubusercontent.com/u/8532311?v=3","gravatar_id":"","url":"https://api.github.com/users/Data-Web","html_url":"https://github.com/Data-Web","followers_url":"https://api.github.com/users/Data-Web/followers","following_url":"https://api.github.com/users/Data-Web/following{/other_user}","gists_url":"https://api.github.com/users/Data-Web/gists{/gist_id}","starred_url":"https://api.github.com/users/Data-Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Data-Web/subscriptions","organizations_url":"https://api.github.com/users/Data-Web/orgs","repos_url":"https://api.github.com/users/Data-Web/repos","events_url":"https://api.github.com/users/Data-Web/events{/privacy}","received_events_url":"https://api.github.com/users/Data-Web/received_events","type":"Organization","site_admin":false},"repo":{"id":34237141,"name":"fels_53","full_name":"Data-Web/fels_53","owner":{"login":"Data-Web","id":8532311,"avatar_url":"https://avatars.githubusercontent.com/u/8532311?v=3","gravatar_id":"","url":"https://api.github.com/users/Data-Web","html_url":"https://github.com/Data-Web","followers_url":"https://api.github.com/users/Data-Web/followers","following_url":"https://api.github.com/users/Data-Web/following{/other_user}","gists_url":"https://api.github.com/users/Data-Web/gists{/gist_id}","starred_url":"https://api.github.com/users/Data-Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Data-Web/subscriptions","organizations_url":"https://api.github.com/users/Data-Web/orgs","repos_url":"https://api.github.com/users/Data-Web/repos","events_url":"https://api.github.com/users/Data-Web/events{/privacy}","received_events_url":"https://api.github.com/users/Data-Web/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Data-Web/fels_53","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/Data-Web/fels_53","forks_url":"https://api.github.com/repos/Data-Web/fels_53/forks","keys_url":"https://api.github.com/repos/Data-Web/fels_53/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Data-Web/fels_53/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Data-Web/fels_53/teams","hooks_url":"https://api.github.com/repos/Data-Web/fels_53/hooks","issue_events_url":"https://api.github.com/repos/Data-Web/fels_53/issues/events{/number}","events_url":"https://api.github.com/repos/Data-Web/fels_53/events","assignees_url":"https://api.github.com/repos/Data-Web/fels_53/assignees{/user}","branches_url":"https://api.github.com/repos/Data-Web/fels_53/branches{/branch}","tags_url":"https://api.github.com/repos/Data-Web/fels_53/tags","blobs_url":"https://api.github.com/repos/Data-Web/fels_53/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Data-Web/fels_53/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Data-Web/fels_53/git/refs{/sha}","trees_url":"https://api.github.com/repos/Data-Web/fels_53/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Data-Web/fels_53/statuses/{sha}","languages_url":"https://api.github.com/repos/Data-Web/fels_53/languages","stargazers_url":"https://api.github.com/repos/Data-Web/fels_53/stargazers","contributors_url":"https://api.github.com/repos/Data-Web/fels_53/contributors","subscribers_url":"https://api.github.com/repos/Data-Web/fels_53/subscribers","subscription_url":"https://api.github.com/repos/Data-Web/fels_53/subscription","commits_url":"https://api.github.com/repos/Data-Web/fels_53/commits{/sha}","git_commits_url":"https://api.github.com/repos/Data-Web/fels_53/git/commits{/sha}","comments_url":"https://api.github.com/repos/Data-Web/fels_53/comments{/number}","issue_comment_url":"https://api.github.com/repos/Data-Web/fels_53/issues/comments{/number}","contents_url":"https://api.github.com/repos/Data-Web/fels_53/contents/{+path}","compare_url":"https://api.github.com/repos/Data-Web/fels_53/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Data-Web/fels_53/merges","archive_url":"https://api.github.com/repos/Data-Web/fels_53/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Data-Web/fels_53/downloads","issues_url":"https://api.github.com/repos/Data-Web/fels_53/issues{/number}","pulls_url":"https://api.github.com/repos/Data-Web/fels_53/pulls{/number}","milestones_url":"https://api.github.com/repos/Data-Web/fels_53/milestones{/number}","notifications_url":"https://api.github.com/repos/Data-Web/fels_53/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Data-Web/fels_53/labels{/name}","releases_url":"https://api.github.com/repos/Data-Web/fels_53/releases{/id}","created_at":"2015-04-20T04:07:15Z","updated_at":"2015-04-20T02:22:40Z","pushed_at":"2015-04-24T01:32:15Z","git_url":"git://github.com/Data-Web/fels_53.git","ssh_url":"git@github.com:Data-Web/fels_53.git","clone_url":"https://github.com/Data-Web/fels_53.git","svn_url":"https://github.com/Data-Web/fels_53","homepage":null,"size":290,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"64d5aff8d3d7a04a89309ccc6a6e7dc3f9150686","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":34233375,"name":"fels_53","full_name":"framgia/fels_53","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_53","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_53","forks_url":"https://api.github.com/repos/framgia/fels_53/forks","keys_url":"https://api.github.com/repos/framgia/fels_53/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_53/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_53/teams","hooks_url":"https://api.github.com/repos/framgia/fels_53/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_53/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_53/events","assignees_url":"https://api.github.com/repos/framgia/fels_53/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_53/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_53/tags","blobs_url":"https://api.github.com/repos/framgia/fels_53/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_53/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_53/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_53/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_53/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_53/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_53/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_53/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_53/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_53/subscription","commits_url":"https://api.github.com/repos/framgia/fels_53/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_53/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_53/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_53/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_53/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_53/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_53/merges","archive_url":"https://api.github.com/repos/framgia/fels_53/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_53/downloads","issues_url":"https://api.github.com/repos/framgia/fels_53/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_53/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_53/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_53/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_53/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_53/releases{/id}","created_at":"2015-04-20T02:22:40Z","updated_at":"2015-04-20T02:22:40Z","pushed_at":"2015-04-24T01:32:15Z","git_url":"git://github.com/framgia/fels_53.git","ssh_url":"git@github.com:framgia/fels_53.git","clone_url":"https://github.com/framgia/fels_53.git","svn_url":"https://github.com/framgia/fels_53","homepage":null,"size":2377,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_53/pulls/7"},"html":{"href":"https://github.com/framgia/fels_53/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/fels_53/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/fels_53/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_53/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_53/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_53/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_53/statuses/d16a9cdeb3b64e5054adc1d7218f47dccc46ed3d"}}}}