{"action":"created","comment":{"url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/comments/47471907","id":47471907,"diff_hunk":"@@ -10,7 +48,7 @@\n </div>\n <table class=\"chessboard\">\n   <% (0..7).to_a.reverse.each do |row| %>\n-    <tr class=\"y-position-<%= row %>\" >\n+    <tr data-y-position=\"<%= row %>\">","path":"app/views/games/show.html.erb","position":47,"original_position":47,"commit_id":"10d2e4731c9ae1be3534e69a221bc7de36782a0a","original_commit_id":"10d2e4731c9ae1be3534e69a221bc7de36782a0a","user":{"login":"jeffgerlach","id":13844570,"avatar_url":"https://avatars.githubusercontent.com/u/13844570?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffgerlach","html_url":"https://github.com/jeffgerlach","followers_url":"https://api.github.com/users/jeffgerlach/followers","following_url":"https://api.github.com/users/jeffgerlach/following{/other_user}","gists_url":"https://api.github.com/users/jeffgerlach/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffgerlach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffgerlach/subscriptions","organizations_url":"https://api.github.com/users/jeffgerlach/orgs","repos_url":"https://api.github.com/users/jeffgerlach/repos","events_url":"https://api.github.com/users/jeffgerlach/events{/privacy}","received_events_url":"https://api.github.com/users/jeffgerlach/received_events","type":"User","site_admin":false},"body":"should be a data element, not a class","created_at":"2015-12-14T08:43:26Z","updated_at":"2015-12-14T08:43:26Z","html_url":"https://github.com/FallGambit/fall_gambit/pull/52#discussion_r47471907","pull_request_url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/comments/47471907"},"html":{"href":"https://github.com/FallGambit/fall_gambit/pull/52#discussion_r47471907"},"pull_request":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52","id":53536578,"html_url":"https://github.com/FallGambit/fall_gambit/pull/52","diff_url":"https://github.com/FallGambit/fall_gambit/pull/52.diff","patch_url":"https://github.com/FallGambit/fall_gambit/pull/52.patch","issue_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues/52","number":52,"state":"open","locked":false,"title":"Allow dragging and dropping of pieces to move them on the board","user":{"login":"jeffgerlach","id":13844570,"avatar_url":"https://avatars.githubusercontent.com/u/13844570?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffgerlach","html_url":"https://github.com/jeffgerlach","followers_url":"https://api.github.com/users/jeffgerlach/followers","following_url":"https://api.github.com/users/jeffgerlach/following{/other_user}","gists_url":"https://api.github.com/users/jeffgerlach/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffgerlach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffgerlach/subscriptions","organizations_url":"https://api.github.com/users/jeffgerlach/orgs","repos_url":"https://api.github.com/users/jeffgerlach/repos","events_url":"https://api.github.com/users/jeffgerlach/events{/privacy}","received_events_url":"https://api.github.com/users/jeffgerlach/received_events","type":"User","site_admin":false},"body":"Implemented a jQuery solution using draggable and droppable so we can drag a piece on the board for movement purposes. The code can probably be refactored (and I'd like to move it to CoffeeScript later if possible), but should be good enough to push into the develop branch for now. \r\n\r\nI created a custom 'move' controller action in the games controller which sends off the AJAX call to the pieces controller and hooks into the update action which @acodeinprogress recently implemented. \r\n\r\nThere is still no move validation, but once the update action is modified to implement our move_to! method, this feature *should* continue to work, though we may need to fiddle with flash messages to get them to work correctly with the AJAX calls. \r\n\r\nI was able to contain the piece movement to stay on the game boar, and it should refresh the board after each move.","created_at":"2015-12-14T08:36:17Z","updated_at":"2015-12-14T08:43:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3a2d4c9fa3507b1804285682063bab503a1ca3f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52/commits","review_comments_url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52/comments","review_comment_url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues/52/comments","statuses_url":"https://api.github.com/repos/FallGambit/fall_gambit/statuses/10d2e4731c9ae1be3534e69a221bc7de36782a0a","head":{"label":"FallGambit:jg/javascript_for_moves","ref":"jg/javascript_for_moves","sha":"10d2e4731c9ae1be3534e69a221bc7de36782a0a","user":{"login":"FallGambit","id":15710535,"avatar_url":"https://avatars.githubusercontent.com/u/15710535?v=3","gravatar_id":"","url":"https://api.github.com/users/FallGambit","html_url":"https://github.com/FallGambit","followers_url":"https://api.github.com/users/FallGambit/followers","following_url":"https://api.github.com/users/FallGambit/following{/other_user}","gists_url":"https://api.github.com/users/FallGambit/gists{/gist_id}","starred_url":"https://api.github.com/users/FallGambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FallGambit/subscriptions","organizations_url":"https://api.github.com/users/FallGambit/orgs","repos_url":"https://api.github.com/users/FallGambit/repos","events_url":"https://api.github.com/users/FallGambit/events{/privacy}","received_events_url":"https://api.github.com/users/FallGambit/received_events","type":"Organization","site_admin":false},"repo":{"id":45763248,"name":"fall_gambit","full_name":"FallGambit/fall_gambit","owner":{"login":"FallGambit","id":15710535,"avatar_url":"https://avatars.githubusercontent.com/u/15710535?v=3","gravatar_id":"","url":"https://api.github.com/users/FallGambit","html_url":"https://github.com/FallGambit","followers_url":"https://api.github.com/users/FallGambit/followers","following_url":"https://api.github.com/users/FallGambit/following{/other_user}","gists_url":"https://api.github.com/users/FallGambit/gists{/gist_id}","starred_url":"https://api.github.com/users/FallGambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FallGambit/subscriptions","organizations_url":"https://api.github.com/users/FallGambit/orgs","repos_url":"https://api.github.com/users/FallGambit/repos","events_url":"https://api.github.com/users/FallGambit/events{/privacy}","received_events_url":"https://api.github.com/users/FallGambit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FallGambit/fall_gambit","description":"The Firehose Project group project chess application","fork":false,"url":"https://api.github.com/repos/FallGambit/fall_gambit","forks_url":"https://api.github.com/repos/FallGambit/fall_gambit/forks","keys_url":"https://api.github.com/repos/FallGambit/fall_gambit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FallGambit/fall_gambit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FallGambit/fall_gambit/teams","hooks_url":"https://api.github.com/repos/FallGambit/fall_gambit/hooks","issue_events_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues/events{/number}","events_url":"https://api.github.com/repos/FallGambit/fall_gambit/events","assignees_url":"https://api.github.com/repos/FallGambit/fall_gambit/assignees{/user}","branches_url":"https://api.github.com/repos/FallGambit/fall_gambit/branches{/branch}","tags_url":"https://api.github.com/repos/FallGambit/fall_gambit/tags","blobs_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/refs{/sha}","trees_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FallGambit/fall_gambit/statuses/{sha}","languages_url":"https://api.github.com/repos/FallGambit/fall_gambit/languages","stargazers_url":"https://api.github.com/repos/FallGambit/fall_gambit/stargazers","contributors_url":"https://api.github.com/repos/FallGambit/fall_gambit/contributors","subscribers_url":"https://api.github.com/repos/FallGambit/fall_gambit/subscribers","subscription_url":"https://api.github.com/repos/FallGambit/fall_gambit/subscription","commits_url":"https://api.github.com/repos/FallGambit/fall_gambit/commits{/sha}","git_commits_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/commits{/sha}","comments_url":"https://api.github.com/repos/FallGambit/fall_gambit/comments{/number}","issue_comment_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues/comments{/number}","contents_url":"https://api.github.com/repos/FallGambit/fall_gambit/contents/{+path}","compare_url":"https://api.github.com/repos/FallGambit/fall_gambit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FallGambit/fall_gambit/merges","archive_url":"https://api.github.com/repos/FallGambit/fall_gambit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FallGambit/fall_gambit/downloads","issues_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues{/number}","pulls_url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls{/number}","milestones_url":"https://api.github.com/repos/FallGambit/fall_gambit/milestones{/number}","notifications_url":"https://api.github.com/repos/FallGambit/fall_gambit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FallGambit/fall_gambit/labels{/name}","releases_url":"https://api.github.com/repos/FallGambit/fall_gambit/releases{/id}","created_at":"2015-11-08T02:08:17Z","updated_at":"2015-11-15T21:01:38Z","pushed_at":"2015-12-14T08:36:18Z","git_url":"git://github.com/FallGambit/fall_gambit.git","ssh_url":"git@github.com:FallGambit/fall_gambit.git","clone_url":"https://github.com/FallGambit/fall_gambit.git","svn_url":"https://github.com/FallGambit/fall_gambit","homepage":null,"size":892,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":3,"default_branch":"develop"}},"base":{"label":"FallGambit:develop","ref":"develop","sha":"31b00ff2f627fd215f252715df0570365c465b1d","user":{"login":"FallGambit","id":15710535,"avatar_url":"https://avatars.githubusercontent.com/u/15710535?v=3","gravatar_id":"","url":"https://api.github.com/users/FallGambit","html_url":"https://github.com/FallGambit","followers_url":"https://api.github.com/users/FallGambit/followers","following_url":"https://api.github.com/users/FallGambit/following{/other_user}","gists_url":"https://api.github.com/users/FallGambit/gists{/gist_id}","starred_url":"https://api.github.com/users/FallGambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FallGambit/subscriptions","organizations_url":"https://api.github.com/users/FallGambit/orgs","repos_url":"https://api.github.com/users/FallGambit/repos","events_url":"https://api.github.com/users/FallGambit/events{/privacy}","received_events_url":"https://api.github.com/users/FallGambit/received_events","type":"Organization","site_admin":false},"repo":{"id":45763248,"name":"fall_gambit","full_name":"FallGambit/fall_gambit","owner":{"login":"FallGambit","id":15710535,"avatar_url":"https://avatars.githubusercontent.com/u/15710535?v=3","gravatar_id":"","url":"https://api.github.com/users/FallGambit","html_url":"https://github.com/FallGambit","followers_url":"https://api.github.com/users/FallGambit/followers","following_url":"https://api.github.com/users/FallGambit/following{/other_user}","gists_url":"https://api.github.com/users/FallGambit/gists{/gist_id}","starred_url":"https://api.github.com/users/FallGambit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FallGambit/subscriptions","organizations_url":"https://api.github.com/users/FallGambit/orgs","repos_url":"https://api.github.com/users/FallGambit/repos","events_url":"https://api.github.com/users/FallGambit/events{/privacy}","received_events_url":"https://api.github.com/users/FallGambit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FallGambit/fall_gambit","description":"The Firehose Project group project chess application","fork":false,"url":"https://api.github.com/repos/FallGambit/fall_gambit","forks_url":"https://api.github.com/repos/FallGambit/fall_gambit/forks","keys_url":"https://api.github.com/repos/FallGambit/fall_gambit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FallGambit/fall_gambit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FallGambit/fall_gambit/teams","hooks_url":"https://api.github.com/repos/FallGambit/fall_gambit/hooks","issue_events_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues/events{/number}","events_url":"https://api.github.com/repos/FallGambit/fall_gambit/events","assignees_url":"https://api.github.com/repos/FallGambit/fall_gambit/assignees{/user}","branches_url":"https://api.github.com/repos/FallGambit/fall_gambit/branches{/branch}","tags_url":"https://api.github.com/repos/FallGambit/fall_gambit/tags","blobs_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/refs{/sha}","trees_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FallGambit/fall_gambit/statuses/{sha}","languages_url":"https://api.github.com/repos/FallGambit/fall_gambit/languages","stargazers_url":"https://api.github.com/repos/FallGambit/fall_gambit/stargazers","contributors_url":"https://api.github.com/repos/FallGambit/fall_gambit/contributors","subscribers_url":"https://api.github.com/repos/FallGambit/fall_gambit/subscribers","subscription_url":"https://api.github.com/repos/FallGambit/fall_gambit/subscription","commits_url":"https://api.github.com/repos/FallGambit/fall_gambit/commits{/sha}","git_commits_url":"https://api.github.com/repos/FallGambit/fall_gambit/git/commits{/sha}","comments_url":"https://api.github.com/repos/FallGambit/fall_gambit/comments{/number}","issue_comment_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues/comments{/number}","contents_url":"https://api.github.com/repos/FallGambit/fall_gambit/contents/{+path}","compare_url":"https://api.github.com/repos/FallGambit/fall_gambit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FallGambit/fall_gambit/merges","archive_url":"https://api.github.com/repos/FallGambit/fall_gambit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FallGambit/fall_gambit/downloads","issues_url":"https://api.github.com/repos/FallGambit/fall_gambit/issues{/number}","pulls_url":"https://api.github.com/repos/FallGambit/fall_gambit/pulls{/number}","milestones_url":"https://api.github.com/repos/FallGambit/fall_gambit/milestones{/number}","notifications_url":"https://api.github.com/repos/FallGambit/fall_gambit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FallGambit/fall_gambit/labels{/name}","releases_url":"https://api.github.com/repos/FallGambit/fall_gambit/releases{/id}","created_at":"2015-11-08T02:08:17Z","updated_at":"2015-11-15T21:01:38Z","pushed_at":"2015-12-14T08:36:18Z","git_url":"git://github.com/FallGambit/fall_gambit.git","ssh_url":"git@github.com:FallGambit/fall_gambit.git","clone_url":"https://github.com/FallGambit/fall_gambit.git","svn_url":"https://github.com/FallGambit/fall_gambit","homepage":null,"size":892,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52"},"html":{"href":"https://github.com/FallGambit/fall_gambit/pull/52"},"issue":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/issues/52"},"comments":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/FallGambit/fall_gambit/statuses/10d2e4731c9ae1be3534e69a221bc7de36782a0a"}}}}