{"action":"created","comment":{"url":"https://api.github.com/repos/fjordllc/interns/pulls/comments/44892604","id":44892604,"diff_hunk":"@@ -0,0 +1,74 @@\n+class QuestionsController < ApplicationController\n+  before_action :set_question, only: [:show, :edit, :update, :destroy]\n+\n+  # GET /questions\n+  # GET /questions.json\n+  def index\n+    @questions = Question.all\n+  end\n+\n+  # GET /questions/1\n+  # GET /questions/1.json\n+  def show\n+  end\n+\n+  # GET /questions/new\n+  def new\n+    @question = Question.new\n+  end\n+\n+  # GET /questions/1/edit\n+  def edit\n+  end\n+\n+  # POST /questions\n+  # POST /questions.json\n+  def create\n+    @question = Question.new(question_params)\n+\n+    respond_to do |format|\n+      if @question.save\n+        format.html { redirect_to @question, notice: 'Question was successfully created.' }\n+        format.json { render :show, status: :created, location: @question }\n+      else\n+        format.html { render :new }\n+        format.json { render json: @question.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # PATCH/PUT /questions/1\n+  # PATCH/PUT /questions/1.json\n+  def update\n+    respond_to do |format|\n+      if @question.update(question_params)\n+        format.html { redirect_to @question, notice: 'Question was successfully updated.' }\n+        format.json { render :show, status: :ok, location: @question }\n+      else\n+        format.html { render :edit }\n+        format.json { render json: @question.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # DELETE /questions/1\n+  # DELETE /questions/1.json\n+  def destroy\n+    @question.destroy\n+    respond_to do |format|\n+      format.html { redirect_to questions_url, notice: 'Question was successfully destroyed.' }\n+      format.json { head :no_content }\n+    end\n+  end\n+\n+  private\n+    # Use callbacks to share common setup or constraints between actions.\n+    def set_question","path":"app/controllers/questions_controller.rb","position":66,"original_position":66,"commit_id":"dea84627c7a0974cececac23be726c014ebdd994","original_commit_id":"dea84627c7a0974cececac23be726c014ebdd994","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Inconsistent indentation detected.","created_at":"2015-11-16T06:39:53Z","updated_at":"2015-11-16T06:39:53Z","html_url":"https://github.com/fjordllc/interns/pull/93#discussion_r44892604","pull_request_url":"https://api.github.com/repos/fjordllc/interns/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/comments/44892604"},"html":{"href":"https://github.com/fjordllc/interns/pull/93#discussion_r44892604"},"pull_request":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/fjordllc/interns/pulls/93","id":50776079,"html_url":"https://github.com/fjordllc/interns/pull/93","diff_url":"https://github.com/fjordllc/interns/pull/93.diff","patch_url":"https://github.com/fjordllc/interns/pull/93.patch","issue_url":"https://api.github.com/repos/fjordllc/interns/issues/93","number":93,"state":"open","locked":false,"title":"[WIP] Add Q & A pages","user":{"login":"komagata","id":16577,"avatar_url":"https://avatars.githubusercontent.com/u/16577?v=3","gravatar_id":"","url":"https://api.github.com/users/komagata","html_url":"https://github.com/komagata","followers_url":"https://api.github.com/users/komagata/followers","following_url":"https://api.github.com/users/komagata/following{/other_user}","gists_url":"https://api.github.com/users/komagata/gists{/gist_id}","starred_url":"https://api.github.com/users/komagata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komagata/subscriptions","organizations_url":"https://api.github.com/users/komagata/orgs","repos_url":"https://api.github.com/users/komagata/repos","events_url":"https://api.github.com/users/komagata/events{/privacy}","received_events_url":"https://api.github.com/users/komagata/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-11-16T06:39:49Z","updated_at":"2015-11-16T06:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8acd11c648f6290705af8fa5715061a917d2fba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fjordllc/interns/pulls/93/commits","review_comments_url":"https://api.github.com/repos/fjordllc/interns/pulls/93/comments","review_comment_url":"https://api.github.com/repos/fjordllc/interns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fjordllc/interns/issues/93/comments","statuses_url":"https://api.github.com/repos/fjordllc/interns/statuses/dea84627c7a0974cececac23be726c014ebdd994","head":{"label":"fjordllc:qa","ref":"qa","sha":"dea84627c7a0974cececac23be726c014ebdd994","user":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"repo":{"id":5139175,"name":"interns","full_name":"fjordllc/interns","owner":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fjordllc/interns","description":"Interns and E-Learning Management System.","fork":false,"url":"https://api.github.com/repos/fjordllc/interns","forks_url":"https://api.github.com/repos/fjordllc/interns/forks","keys_url":"https://api.github.com/repos/fjordllc/interns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fjordllc/interns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fjordllc/interns/teams","hooks_url":"https://api.github.com/repos/fjordllc/interns/hooks","issue_events_url":"https://api.github.com/repos/fjordllc/interns/issues/events{/number}","events_url":"https://api.github.com/repos/fjordllc/interns/events","assignees_url":"https://api.github.com/repos/fjordllc/interns/assignees{/user}","branches_url":"https://api.github.com/repos/fjordllc/interns/branches{/branch}","tags_url":"https://api.github.com/repos/fjordllc/interns/tags","blobs_url":"https://api.github.com/repos/fjordllc/interns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fjordllc/interns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fjordllc/interns/git/refs{/sha}","trees_url":"https://api.github.com/repos/fjordllc/interns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fjordllc/interns/statuses/{sha}","languages_url":"https://api.github.com/repos/fjordllc/interns/languages","stargazers_url":"https://api.github.com/repos/fjordllc/interns/stargazers","contributors_url":"https://api.github.com/repos/fjordllc/interns/contributors","subscribers_url":"https://api.github.com/repos/fjordllc/interns/subscribers","subscription_url":"https://api.github.com/repos/fjordllc/interns/subscription","commits_url":"https://api.github.com/repos/fjordllc/interns/commits{/sha}","git_commits_url":"https://api.github.com/repos/fjordllc/interns/git/commits{/sha}","comments_url":"https://api.github.com/repos/fjordllc/interns/comments{/number}","issue_comment_url":"https://api.github.com/repos/fjordllc/interns/issues/comments{/number}","contents_url":"https://api.github.com/repos/fjordllc/interns/contents/{+path}","compare_url":"https://api.github.com/repos/fjordllc/interns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fjordllc/interns/merges","archive_url":"https://api.github.com/repos/fjordllc/interns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fjordllc/interns/downloads","issues_url":"https://api.github.com/repos/fjordllc/interns/issues{/number}","pulls_url":"https://api.github.com/repos/fjordllc/interns/pulls{/number}","milestones_url":"https://api.github.com/repos/fjordllc/interns/milestones{/number}","notifications_url":"https://api.github.com/repos/fjordllc/interns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fjordllc/interns/labels{/name}","releases_url":"https://api.github.com/repos/fjordllc/interns/releases{/id}","created_at":"2012-07-22T04:59:57Z","updated_at":"2015-08-20T01:33:56Z","pushed_at":"2015-11-16T06:39:49Z","git_url":"git://github.com/fjordllc/interns.git","ssh_url":"git@github.com:fjordllc/interns.git","clone_url":"https://github.com/fjordllc/interns.git","svn_url":"https://github.com/fjordllc/interns","homepage":"","size":11016,"stargazers_count":30,"watchers_count":30,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":12,"forks":4,"open_issues":12,"watchers":30,"default_branch":"master"}},"base":{"label":"fjordllc:master","ref":"master","sha":"9e8397a393274c78e9491d314da7c56a562c3c19","user":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"repo":{"id":5139175,"name":"interns","full_name":"fjordllc/interns","owner":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fjordllc/interns","description":"Interns and E-Learning Management System.","fork":false,"url":"https://api.github.com/repos/fjordllc/interns","forks_url":"https://api.github.com/repos/fjordllc/interns/forks","keys_url":"https://api.github.com/repos/fjordllc/interns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fjordllc/interns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fjordllc/interns/teams","hooks_url":"https://api.github.com/repos/fjordllc/interns/hooks","issue_events_url":"https://api.github.com/repos/fjordllc/interns/issues/events{/number}","events_url":"https://api.github.com/repos/fjordllc/interns/events","assignees_url":"https://api.github.com/repos/fjordllc/interns/assignees{/user}","branches_url":"https://api.github.com/repos/fjordllc/interns/branches{/branch}","tags_url":"https://api.github.com/repos/fjordllc/interns/tags","blobs_url":"https://api.github.com/repos/fjordllc/interns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fjordllc/interns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fjordllc/interns/git/refs{/sha}","trees_url":"https://api.github.com/repos/fjordllc/interns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fjordllc/interns/statuses/{sha}","languages_url":"https://api.github.com/repos/fjordllc/interns/languages","stargazers_url":"https://api.github.com/repos/fjordllc/interns/stargazers","contributors_url":"https://api.github.com/repos/fjordllc/interns/contributors","subscribers_url":"https://api.github.com/repos/fjordllc/interns/subscribers","subscription_url":"https://api.github.com/repos/fjordllc/interns/subscription","commits_url":"https://api.github.com/repos/fjordllc/interns/commits{/sha}","git_commits_url":"https://api.github.com/repos/fjordllc/interns/git/commits{/sha}","comments_url":"https://api.github.com/repos/fjordllc/interns/comments{/number}","issue_comment_url":"https://api.github.com/repos/fjordllc/interns/issues/comments{/number}","contents_url":"https://api.github.com/repos/fjordllc/interns/contents/{+path}","compare_url":"https://api.github.com/repos/fjordllc/interns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fjordllc/interns/merges","archive_url":"https://api.github.com/repos/fjordllc/interns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fjordllc/interns/downloads","issues_url":"https://api.github.com/repos/fjordllc/interns/issues{/number}","pulls_url":"https://api.github.com/repos/fjordllc/interns/pulls{/number}","milestones_url":"https://api.github.com/repos/fjordllc/interns/milestones{/number}","notifications_url":"https://api.github.com/repos/fjordllc/interns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fjordllc/interns/labels{/name}","releases_url":"https://api.github.com/repos/fjordllc/interns/releases{/id}","created_at":"2012-07-22T04:59:57Z","updated_at":"2015-08-20T01:33:56Z","pushed_at":"2015-11-16T06:39:49Z","git_url":"git://github.com/fjordllc/interns.git","ssh_url":"git@github.com:fjordllc/interns.git","clone_url":"https://github.com/fjordllc/interns.git","svn_url":"https://github.com/fjordllc/interns","homepage":"","size":11016,"stargazers_count":30,"watchers_count":30,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":12,"forks":4,"open_issues":12,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/93"},"html":{"href":"https://github.com/fjordllc/interns/pull/93"},"issue":{"href":"https://api.github.com/repos/fjordllc/interns/issues/93"},"comments":{"href":"https://api.github.com/repos/fjordllc/interns/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/fjordllc/interns/statuses/dea84627c7a0974cececac23be726c014ebdd994"}}}}