{"action":"created","comment":{"url":"https://api.github.com/repos/maylace/iot_summer/pulls/comments/71905243","id":71905243,"diff_hunk":"@@ -0,0 +1,55 @@\n+class HousesController < ApplicationController\n+  def index\n+    @houses = current_user.houses\n+  end\n+\n+  def new\n+    @house = House.new\n+  end\n+\n+  def edit\n+    @house = House.find(params[:id])\n+  end\n+\n+  def create\n+    @house = House.new(user_params)\n+    @house.user = current_user\n+    @house.save\n+    redirect_to houses_path\n+  end\n+\n+  def show\n+    @house = House.find(params[:id])\n+  end\n+\n+  def update\n+    @house = House.find(params[:id])\n+    if @house.update(user_params)\n+      redirect_to house_path(@house.id)\n+    end\n+end\n+\n+  def destroy\n+    @house = House.find(params[:id])\n+    @house.destroy\n+    redirect_to houses_path\n+  end\n+\n+  def create_device","path":"app/controllers/houses_controller.rb","position":38,"original_position":38,"commit_id":"06d0a6ba6a6e55f4ec8239bc5adef3d3106748ae","original_commit_id":"06d0a6ba6a6e55f4ec8239bc5adef3d3106748ae","user":{"login":"savionok","id":1003758,"avatar_url":"https://avatars.githubusercontent.com/u/1003758?v=3","gravatar_id":"","url":"https://api.github.com/users/savionok","html_url":"https://github.com/savionok","followers_url":"https://api.github.com/users/savionok/followers","following_url":"https://api.github.com/users/savionok/following{/other_user}","gists_url":"https://api.github.com/users/savionok/gists{/gist_id}","starred_url":"https://api.github.com/users/savionok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savionok/subscriptions","organizations_url":"https://api.github.com/users/savionok/orgs","repos_url":"https://api.github.com/users/savionok/repos","events_url":"https://api.github.com/users/savionok/events{/privacy}","received_events_url":"https://api.github.com/users/savionok/received_events","type":"User","site_admin":false},"body":"not sure that is working. You didn't defined the route. and you didn't test it :(","created_at":"2016-07-22T16:17:42Z","updated_at":"2016-07-22T16:17:42Z","html_url":"https://github.com/maylace/iot_summer/pull/1#discussion_r71905243","pull_request_url":"https://api.github.com/repos/maylace/iot_summer/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/maylace/iot_summer/pulls/comments/71905243"},"html":{"href":"https://github.com/maylace/iot_summer/pull/1#discussion_r71905243"},"pull_request":{"href":"https://api.github.com/repos/maylace/iot_summer/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/maylace/iot_summer/pulls/1","id":76130447,"html_url":"https://github.com/maylace/iot_summer/pull/1","diff_url":"https://github.com/maylace/iot_summer/pull/1.diff","patch_url":"https://github.com/maylace/iot_summer/pull/1.patch","issue_url":"https://api.github.com/repos/maylace/iot_summer/issues/1","number":1,"state":"open","locked":false,"title":"Requests","user":{"login":"maylace","id":17216067,"avatar_url":"https://avatars.githubusercontent.com/u/17216067?v=3","gravatar_id":"","url":"https://api.github.com/users/maylace","html_url":"https://github.com/maylace","followers_url":"https://api.github.com/users/maylace/followers","following_url":"https://api.github.com/users/maylace/following{/other_user}","gists_url":"https://api.github.com/users/maylace/gists{/gist_id}","starred_url":"https://api.github.com/users/maylace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maylace/subscriptions","organizations_url":"https://api.github.com/users/maylace/orgs","repos_url":"https://api.github.com/users/maylace/repos","events_url":"https://api.github.com/users/maylace/events{/privacy}","received_events_url":"https://api.github.com/users/maylace/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-04T08:47:14Z","updated_at":"2016-07-22T16:17:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"027ec1b399fb914afd8253bcdf96cbdcf71533d9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/maylace/iot_summer/pulls/1/commits","review_comments_url":"https://api.github.com/repos/maylace/iot_summer/pulls/1/comments","review_comment_url":"https://api.github.com/repos/maylace/iot_summer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maylace/iot_summer/issues/1/comments","statuses_url":"https://api.github.com/repos/maylace/iot_summer/statuses/06d0a6ba6a6e55f4ec8239bc5adef3d3106748ae","head":{"label":"maylace:requests","ref":"requests","sha":"06d0a6ba6a6e55f4ec8239bc5adef3d3106748ae","user":{"login":"maylace","id":17216067,"avatar_url":"https://avatars.githubusercontent.com/u/17216067?v=3","gravatar_id":"","url":"https://api.github.com/users/maylace","html_url":"https://github.com/maylace","followers_url":"https://api.github.com/users/maylace/followers","following_url":"https://api.github.com/users/maylace/following{/other_user}","gists_url":"https://api.github.com/users/maylace/gists{/gist_id}","starred_url":"https://api.github.com/users/maylace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maylace/subscriptions","organizations_url":"https://api.github.com/users/maylace/orgs","repos_url":"https://api.github.com/users/maylace/repos","events_url":"https://api.github.com/users/maylace/events{/privacy}","received_events_url":"https://api.github.com/users/maylace/received_events","type":"User","site_admin":false},"repo":{"id":61937965,"name":"iot_summer","full_name":"maylace/iot_summer","owner":{"login":"maylace","id":17216067,"avatar_url":"https://avatars.githubusercontent.com/u/17216067?v=3","gravatar_id":"","url":"https://api.github.com/users/maylace","html_url":"https://github.com/maylace","followers_url":"https://api.github.com/users/maylace/followers","following_url":"https://api.github.com/users/maylace/following{/other_user}","gists_url":"https://api.github.com/users/maylace/gists{/gist_id}","starred_url":"https://api.github.com/users/maylace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maylace/subscriptions","organizations_url":"https://api.github.com/users/maylace/orgs","repos_url":"https://api.github.com/users/maylace/repos","events_url":"https://api.github.com/users/maylace/events{/privacy}","received_events_url":"https://api.github.com/users/maylace/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maylace/iot_summer","description":null,"fork":false,"url":"https://api.github.com/repos/maylace/iot_summer","forks_url":"https://api.github.com/repos/maylace/iot_summer/forks","keys_url":"https://api.github.com/repos/maylace/iot_summer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maylace/iot_summer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maylace/iot_summer/teams","hooks_url":"https://api.github.com/repos/maylace/iot_summer/hooks","issue_events_url":"https://api.github.com/repos/maylace/iot_summer/issues/events{/number}","events_url":"https://api.github.com/repos/maylace/iot_summer/events","assignees_url":"https://api.github.com/repos/maylace/iot_summer/assignees{/user}","branches_url":"https://api.github.com/repos/maylace/iot_summer/branches{/branch}","tags_url":"https://api.github.com/repos/maylace/iot_summer/tags","blobs_url":"https://api.github.com/repos/maylace/iot_summer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maylace/iot_summer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maylace/iot_summer/git/refs{/sha}","trees_url":"https://api.github.com/repos/maylace/iot_summer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maylace/iot_summer/statuses/{sha}","languages_url":"https://api.github.com/repos/maylace/iot_summer/languages","stargazers_url":"https://api.github.com/repos/maylace/iot_summer/stargazers","contributors_url":"https://api.github.com/repos/maylace/iot_summer/contributors","subscribers_url":"https://api.github.com/repos/maylace/iot_summer/subscribers","subscription_url":"https://api.github.com/repos/maylace/iot_summer/subscription","commits_url":"https://api.github.com/repos/maylace/iot_summer/commits{/sha}","git_commits_url":"https://api.github.com/repos/maylace/iot_summer/git/commits{/sha}","comments_url":"https://api.github.com/repos/maylace/iot_summer/comments{/number}","issue_comment_url":"https://api.github.com/repos/maylace/iot_summer/issues/comments{/number}","contents_url":"https://api.github.com/repos/maylace/iot_summer/contents/{+path}","compare_url":"https://api.github.com/repos/maylace/iot_summer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maylace/iot_summer/merges","archive_url":"https://api.github.com/repos/maylace/iot_summer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maylace/iot_summer/downloads","issues_url":"https://api.github.com/repos/maylace/iot_summer/issues{/number}","pulls_url":"https://api.github.com/repos/maylace/iot_summer/pulls{/number}","milestones_url":"https://api.github.com/repos/maylace/iot_summer/milestones{/number}","notifications_url":"https://api.github.com/repos/maylace/iot_summer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maylace/iot_summer/labels{/name}","releases_url":"https://api.github.com/repos/maylace/iot_summer/releases{/id}","deployments_url":"https://api.github.com/repos/maylace/iot_summer/deployments","created_at":"2016-06-25T10:14:57Z","updated_at":"2016-06-25T10:17:03Z","pushed_at":"2016-07-19T09:28:11Z","git_url":"git://github.com/maylace/iot_summer.git","ssh_url":"git@github.com:maylace/iot_summer.git","clone_url":"https://github.com/maylace/iot_summer.git","svn_url":"https://github.com/maylace/iot_summer","homepage":null,"size":2276,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"maylace:development","ref":"development","sha":"9987acf527a3c7869d4a3cbb7ec151eda8f73127","user":{"login":"maylace","id":17216067,"avatar_url":"https://avatars.githubusercontent.com/u/17216067?v=3","gravatar_id":"","url":"https://api.github.com/users/maylace","html_url":"https://github.com/maylace","followers_url":"https://api.github.com/users/maylace/followers","following_url":"https://api.github.com/users/maylace/following{/other_user}","gists_url":"https://api.github.com/users/maylace/gists{/gist_id}","starred_url":"https://api.github.com/users/maylace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maylace/subscriptions","organizations_url":"https://api.github.com/users/maylace/orgs","repos_url":"https://api.github.com/users/maylace/repos","events_url":"https://api.github.com/users/maylace/events{/privacy}","received_events_url":"https://api.github.com/users/maylace/received_events","type":"User","site_admin":false},"repo":{"id":61937965,"name":"iot_summer","full_name":"maylace/iot_summer","owner":{"login":"maylace","id":17216067,"avatar_url":"https://avatars.githubusercontent.com/u/17216067?v=3","gravatar_id":"","url":"https://api.github.com/users/maylace","html_url":"https://github.com/maylace","followers_url":"https://api.github.com/users/maylace/followers","following_url":"https://api.github.com/users/maylace/following{/other_user}","gists_url":"https://api.github.com/users/maylace/gists{/gist_id}","starred_url":"https://api.github.com/users/maylace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maylace/subscriptions","organizations_url":"https://api.github.com/users/maylace/orgs","repos_url":"https://api.github.com/users/maylace/repos","events_url":"https://api.github.com/users/maylace/events{/privacy}","received_events_url":"https://api.github.com/users/maylace/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maylace/iot_summer","description":null,"fork":false,"url":"https://api.github.com/repos/maylace/iot_summer","forks_url":"https://api.github.com/repos/maylace/iot_summer/forks","keys_url":"https://api.github.com/repos/maylace/iot_summer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maylace/iot_summer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maylace/iot_summer/teams","hooks_url":"https://api.github.com/repos/maylace/iot_summer/hooks","issue_events_url":"https://api.github.com/repos/maylace/iot_summer/issues/events{/number}","events_url":"https://api.github.com/repos/maylace/iot_summer/events","assignees_url":"https://api.github.com/repos/maylace/iot_summer/assignees{/user}","branches_url":"https://api.github.com/repos/maylace/iot_summer/branches{/branch}","tags_url":"https://api.github.com/repos/maylace/iot_summer/tags","blobs_url":"https://api.github.com/repos/maylace/iot_summer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maylace/iot_summer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maylace/iot_summer/git/refs{/sha}","trees_url":"https://api.github.com/repos/maylace/iot_summer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maylace/iot_summer/statuses/{sha}","languages_url":"https://api.github.com/repos/maylace/iot_summer/languages","stargazers_url":"https://api.github.com/repos/maylace/iot_summer/stargazers","contributors_url":"https://api.github.com/repos/maylace/iot_summer/contributors","subscribers_url":"https://api.github.com/repos/maylace/iot_summer/subscribers","subscription_url":"https://api.github.com/repos/maylace/iot_summer/subscription","commits_url":"https://api.github.com/repos/maylace/iot_summer/commits{/sha}","git_commits_url":"https://api.github.com/repos/maylace/iot_summer/git/commits{/sha}","comments_url":"https://api.github.com/repos/maylace/iot_summer/comments{/number}","issue_comment_url":"https://api.github.com/repos/maylace/iot_summer/issues/comments{/number}","contents_url":"https://api.github.com/repos/maylace/iot_summer/contents/{+path}","compare_url":"https://api.github.com/repos/maylace/iot_summer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maylace/iot_summer/merges","archive_url":"https://api.github.com/repos/maylace/iot_summer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maylace/iot_summer/downloads","issues_url":"https://api.github.com/repos/maylace/iot_summer/issues{/number}","pulls_url":"https://api.github.com/repos/maylace/iot_summer/pulls{/number}","milestones_url":"https://api.github.com/repos/maylace/iot_summer/milestones{/number}","notifications_url":"https://api.github.com/repos/maylace/iot_summer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maylace/iot_summer/labels{/name}","releases_url":"https://api.github.com/repos/maylace/iot_summer/releases{/id}","deployments_url":"https://api.github.com/repos/maylace/iot_summer/deployments","created_at":"2016-06-25T10:14:57Z","updated_at":"2016-06-25T10:17:03Z","pushed_at":"2016-07-19T09:28:11Z","git_url":"git://github.com/maylace/iot_summer.git","ssh_url":"git@github.com:maylace/iot_summer.git","clone_url":"https://github.com/maylace/iot_summer.git","svn_url":"https://github.com/maylace/iot_summer","homepage":null,"size":2276,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maylace/iot_summer/pulls/1"},"html":{"href":"https://github.com/maylace/iot_summer/pull/1"},"issue":{"href":"https://api.github.com/repos/maylace/iot_summer/issues/1"},"comments":{"href":"https://api.github.com/repos/maylace/iot_summer/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/maylace/iot_summer/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/maylace/iot_summer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maylace/iot_summer/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/maylace/iot_summer/statuses/06d0a6ba6a6e55f4ec8239bc5adef3d3106748ae"}}}}
{"actor":{"display_login":"savionok"}}