{"action":"created","comment":{"url":"https://api.github.com/repos/sryoya/protospace/pulls/comments/42184569","id":42184569,"diff_hunk":"@@ -0,0 +1,39 @@\n+.container.proto-new","path":"app/views/protos/new.html.haml","position":1,"original_position":1,"commit_id":"35a556d82e644051fe4e27c7a0aee5f90e1b1edb","original_commit_id":"35a556d82e644051fe4e27c7a0aee5f90e1b1edb","user":{"login":"sryoya","id":14014676,"avatar_url":"https://avatars.githubusercontent.com/u/14014676?v=3","gravatar_id":"","url":"https://api.github.com/users/sryoya","html_url":"https://github.com/sryoya","followers_url":"https://api.github.com/users/sryoya/followers","following_url":"https://api.github.com/users/sryoya/following{/other_user}","gists_url":"https://api.github.com/users/sryoya/gists{/gist_id}","starred_url":"https://api.github.com/users/sryoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sryoya/subscriptions","organizations_url":"https://api.github.com/users/sryoya/orgs","repos_url":"https://api.github.com/users/sryoya/repos","events_url":"https://api.github.com/users/sryoya/events{/privacy}","received_events_url":"https://api.github.com/users/sryoya/received_events","type":"User","site_admin":false},"body":"元のファイルでクラスが指定されているところは、divタグのクラス指定にしてその中にフォームの記述する書き方をしたのですが、やはりダイレクトにフォームにクラス指定した方が良いでしょうか？\r\n\r\nつまり、\r\n\r\n%input.proto-new-title{:type => \"text\", :placeholder => \"Title\"}\r\n\r\nのときは、\r\n\r\n.proto-new-title\r\n            = f.text_field :title, placeholder: \"Title\"\r\n\r\nとして、inputタグをクラス指定そのままでdivタグにして、その中にフォームを書いたのですが、、、\r\nやはり無駄が多いですかね？笑","created_at":"2015-10-15T21:42:43Z","updated_at":"2015-10-15T21:42:43Z","html_url":"https://github.com/sryoya/protospace/pull/11#discussion_r42184569","pull_request_url":"https://api.github.com/repos/sryoya/protospace/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/sryoya/protospace/pulls/comments/42184569"},"html":{"href":"https://github.com/sryoya/protospace/pull/11#discussion_r42184569"},"pull_request":{"href":"https://api.github.com/repos/sryoya/protospace/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/sryoya/protospace/pulls/11","id":47766448,"html_url":"https://github.com/sryoya/protospace/pull/11","diff_url":"https://github.com/sryoya/protospace/pull/11.diff","patch_url":"https://github.com/sryoya/protospace/pull/11.patch","issue_url":"https://api.github.com/repos/sryoya/protospace/issues/11","number":11,"state":"open","locked":false,"title":"protoテーブルの作成　ルーティング等","user":{"login":"sryoya","id":14014676,"avatar_url":"https://avatars.githubusercontent.com/u/14014676?v=3","gravatar_id":"","url":"https://api.github.com/users/sryoya","html_url":"https://github.com/sryoya","followers_url":"https://api.github.com/users/sryoya/followers","following_url":"https://api.github.com/users/sryoya/following{/other_user}","gists_url":"https://api.github.com/users/sryoya/gists{/gist_id}","starred_url":"https://api.github.com/users/sryoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sryoya/subscriptions","organizations_url":"https://api.github.com/users/sryoya/orgs","repos_url":"https://api.github.com/users/sryoya/repos","events_url":"https://api.github.com/users/sryoya/events{/privacy}","received_events_url":"https://api.github.com/users/sryoya/received_events","type":"User","site_admin":false},"body":"# what\r\nprotoテーブルの作成、proto周りのルーティング等の基本的な記述の追加\r\n\r\n# why\r\nprototypeを保存できるようにするため","created_at":"2015-10-15T10:03:38Z","updated_at":"2015-10-15T21:42:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c668c00e02b896c09f1917e645461aa153fb468","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sryoya/protospace/pulls/11/commits","review_comments_url":"https://api.github.com/repos/sryoya/protospace/pulls/11/comments","review_comment_url":"https://api.github.com/repos/sryoya/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sryoya/protospace/issues/11/comments","statuses_url":"https://api.github.com/repos/sryoya/protospace/statuses/35a556d82e644051fe4e27c7a0aee5f90e1b1edb","head":{"label":"sryoya:add_prototype_function","ref":"add_prototype_function","sha":"35a556d82e644051fe4e27c7a0aee5f90e1b1edb","user":{"login":"sryoya","id":14014676,"avatar_url":"https://avatars.githubusercontent.com/u/14014676?v=3","gravatar_id":"","url":"https://api.github.com/users/sryoya","html_url":"https://github.com/sryoya","followers_url":"https://api.github.com/users/sryoya/followers","following_url":"https://api.github.com/users/sryoya/following{/other_user}","gists_url":"https://api.github.com/users/sryoya/gists{/gist_id}","starred_url":"https://api.github.com/users/sryoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sryoya/subscriptions","organizations_url":"https://api.github.com/users/sryoya/orgs","repos_url":"https://api.github.com/users/sryoya/repos","events_url":"https://api.github.com/users/sryoya/events{/privacy}","received_events_url":"https://api.github.com/users/sryoya/received_events","type":"User","site_admin":false},"repo":{"id":43958949,"name":"protospace","full_name":"sryoya/protospace","owner":{"login":"sryoya","id":14014676,"avatar_url":"https://avatars.githubusercontent.com/u/14014676?v=3","gravatar_id":"","url":"https://api.github.com/users/sryoya","html_url":"https://github.com/sryoya","followers_url":"https://api.github.com/users/sryoya/followers","following_url":"https://api.github.com/users/sryoya/following{/other_user}","gists_url":"https://api.github.com/users/sryoya/gists{/gist_id}","starred_url":"https://api.github.com/users/sryoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sryoya/subscriptions","organizations_url":"https://api.github.com/users/sryoya/orgs","repos_url":"https://api.github.com/users/sryoya/repos","events_url":"https://api.github.com/users/sryoya/events{/privacy}","received_events_url":"https://api.github.com/users/sryoya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sryoya/protospace","description":"","fork":false,"url":"https://api.github.com/repos/sryoya/protospace","forks_url":"https://api.github.com/repos/sryoya/protospace/forks","keys_url":"https://api.github.com/repos/sryoya/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sryoya/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sryoya/protospace/teams","hooks_url":"https://api.github.com/repos/sryoya/protospace/hooks","issue_events_url":"https://api.github.com/repos/sryoya/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/sryoya/protospace/events","assignees_url":"https://api.github.com/repos/sryoya/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/sryoya/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/sryoya/protospace/tags","blobs_url":"https://api.github.com/repos/sryoya/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sryoya/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sryoya/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/sryoya/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sryoya/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/sryoya/protospace/languages","stargazers_url":"https://api.github.com/repos/sryoya/protospace/stargazers","contributors_url":"https://api.github.com/repos/sryoya/protospace/contributors","subscribers_url":"https://api.github.com/repos/sryoya/protospace/subscribers","subscription_url":"https://api.github.com/repos/sryoya/protospace/subscription","commits_url":"https://api.github.com/repos/sryoya/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/sryoya/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/sryoya/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/sryoya/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/sryoya/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/sryoya/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sryoya/protospace/merges","archive_url":"https://api.github.com/repos/sryoya/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sryoya/protospace/downloads","issues_url":"https://api.github.com/repos/sryoya/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/sryoya/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/sryoya/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/sryoya/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sryoya/protospace/labels{/name}","releases_url":"https://api.github.com/repos/sryoya/protospace/releases{/id}","created_at":"2015-10-09T14:02:22Z","updated_at":"2015-10-10T10:53:17Z","pushed_at":"2015-10-15T19:29:12Z","git_url":"git://github.com/sryoya/protospace.git","ssh_url":"git@github.com:sryoya/protospace.git","clone_url":"https://github.com/sryoya/protospace.git","svn_url":"https://github.com/sryoya/protospace","homepage":"","size":0,"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":"sryoya:master","ref":"master","sha":"2d9ecbfad75d1756f3b79ef224f59582fdc1a0c4","user":{"login":"sryoya","id":14014676,"avatar_url":"https://avatars.githubusercontent.com/u/14014676?v=3","gravatar_id":"","url":"https://api.github.com/users/sryoya","html_url":"https://github.com/sryoya","followers_url":"https://api.github.com/users/sryoya/followers","following_url":"https://api.github.com/users/sryoya/following{/other_user}","gists_url":"https://api.github.com/users/sryoya/gists{/gist_id}","starred_url":"https://api.github.com/users/sryoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sryoya/subscriptions","organizations_url":"https://api.github.com/users/sryoya/orgs","repos_url":"https://api.github.com/users/sryoya/repos","events_url":"https://api.github.com/users/sryoya/events{/privacy}","received_events_url":"https://api.github.com/users/sryoya/received_events","type":"User","site_admin":false},"repo":{"id":43958949,"name":"protospace","full_name":"sryoya/protospace","owner":{"login":"sryoya","id":14014676,"avatar_url":"https://avatars.githubusercontent.com/u/14014676?v=3","gravatar_id":"","url":"https://api.github.com/users/sryoya","html_url":"https://github.com/sryoya","followers_url":"https://api.github.com/users/sryoya/followers","following_url":"https://api.github.com/users/sryoya/following{/other_user}","gists_url":"https://api.github.com/users/sryoya/gists{/gist_id}","starred_url":"https://api.github.com/users/sryoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sryoya/subscriptions","organizations_url":"https://api.github.com/users/sryoya/orgs","repos_url":"https://api.github.com/users/sryoya/repos","events_url":"https://api.github.com/users/sryoya/events{/privacy}","received_events_url":"https://api.github.com/users/sryoya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sryoya/protospace","description":"","fork":false,"url":"https://api.github.com/repos/sryoya/protospace","forks_url":"https://api.github.com/repos/sryoya/protospace/forks","keys_url":"https://api.github.com/repos/sryoya/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sryoya/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sryoya/protospace/teams","hooks_url":"https://api.github.com/repos/sryoya/protospace/hooks","issue_events_url":"https://api.github.com/repos/sryoya/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/sryoya/protospace/events","assignees_url":"https://api.github.com/repos/sryoya/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/sryoya/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/sryoya/protospace/tags","blobs_url":"https://api.github.com/repos/sryoya/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sryoya/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sryoya/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/sryoya/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sryoya/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/sryoya/protospace/languages","stargazers_url":"https://api.github.com/repos/sryoya/protospace/stargazers","contributors_url":"https://api.github.com/repos/sryoya/protospace/contributors","subscribers_url":"https://api.github.com/repos/sryoya/protospace/subscribers","subscription_url":"https://api.github.com/repos/sryoya/protospace/subscription","commits_url":"https://api.github.com/repos/sryoya/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/sryoya/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/sryoya/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/sryoya/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/sryoya/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/sryoya/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sryoya/protospace/merges","archive_url":"https://api.github.com/repos/sryoya/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sryoya/protospace/downloads","issues_url":"https://api.github.com/repos/sryoya/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/sryoya/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/sryoya/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/sryoya/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sryoya/protospace/labels{/name}","releases_url":"https://api.github.com/repos/sryoya/protospace/releases{/id}","created_at":"2015-10-09T14:02:22Z","updated_at":"2015-10-10T10:53:17Z","pushed_at":"2015-10-15T19:29:12Z","git_url":"git://github.com/sryoya/protospace.git","ssh_url":"git@github.com:sryoya/protospace.git","clone_url":"https://github.com/sryoya/protospace.git","svn_url":"https://github.com/sryoya/protospace","homepage":"","size":0,"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/sryoya/protospace/pulls/11"},"html":{"href":"https://github.com/sryoya/protospace/pull/11"},"issue":{"href":"https://api.github.com/repos/sryoya/protospace/issues/11"},"comments":{"href":"https://api.github.com/repos/sryoya/protospace/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/sryoya/protospace/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/sryoya/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sryoya/protospace/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/sryoya/protospace/statuses/35a556d82e644051fe4e27c7a0aee5f90e1b1edb"}}}}