{"action":"created","comment":{"url":"https://api.github.com/repos/prereflect/tl-myflix/pulls/comments/34456594","id":34456594,"diff_hunk":"@@ -4,27 +4,40 @@\n       %article\n         %header\n           %h2 My Queue\n-        %table.table\n-          %thead\n-            %tr\n-              %th(width='10%') List Order\n-              %th(width='30%') Video Title\n-              %th(width='10%') Play\n-              %th(width='20%') Rating\n-              %th(width='15%') Genre\n-              %th(width='15%') Remove\n-          %tbody\n-            - @queue_items.each do |queue_item|\n+\n+        = form_tag update_queue_path do\n+          %table.table\n+\n+            %thead\n               %tr\n-                %td= queue_item.position\n-                %td\n-                  = link_to queue_item.video_title, queue_item.video\n-                %td\n-                  = button_to 'Play', nil, class: 'btn btn-default'\n-                %td= queue_item.rating\n-                %td\n-                  = link_to queue_item.category_name, queue_item.category\n-                %td\n-                  = link_to queue_item_path(queue_item), method: :delete do\n-                    %i.glyphicon.glyphicon-remove\n-        = button_to 'Update Instant Queue', nil, class: 'btn btn-default'\n+                %th(width='10%') List Order\n+                %th(width='30%') Video Title\n+                %th(width='10%') Play\n+                %th(width='20%') Rating\n+                %th(width='15%') Genre\n+                %th(width='15%') Remove\n+\n+            %tbody\n+              - @queue_items.each do |queue_item|\n+                %tr\n+                  = hidden_field_tag 'queue_items[][id]', queue_item.id\n+                  %td\n+                    = text_field_tag 'queue_items[][position]',\n+                      queue_item.position,\n+                      class: 'form-control'\n+                  %td\n+                    = link_to queue_item.video_title, queue_item.video\n+                  %td\n+                    = button_to 'Play', nil, class: 'btn btn-default'\n+                  %td\n+                    = select_tag \"queue_items[][rating]\",\n+                      options_for_select(set_rating, queue_item.rating),\n+                      class: 'form-control',","path":"app/views/queue_items/index.html.haml","position":55,"original_position":55,"commit_id":"38a18cd84ad1b8a0ed8afe3d8df3b3e7c04c0443","original_commit_id":"38a18cd84ad1b8a0ed8afe3d8df3b3e7c04c0443","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"Wow, nice! OK, if it works for you sure keep it. I remember I had always issues with select and css classes.","created_at":"2015-07-13T12:11:15Z","updated_at":"2015-07-13T12:11:15Z","html_url":"https://github.com/prereflect/tl-myflix/pull/6#discussion_r34456594","pull_request_url":"https://api.github.com/repos/prereflect/tl-myflix/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/prereflect/tl-myflix/pulls/comments/34456594"},"html":{"href":"https://github.com/prereflect/tl-myflix/pull/6#discussion_r34456594"},"pull_request":{"href":"https://api.github.com/repos/prereflect/tl-myflix/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/prereflect/tl-myflix/pulls/6","id":39769901,"html_url":"https://github.com/prereflect/tl-myflix/pull/6","diff_url":"https://github.com/prereflect/tl-myflix/pull/6.diff","patch_url":"https://github.com/prereflect/tl-myflix/pull/6.patch","issue_url":"https://api.github.com/repos/prereflect/tl-myflix/issues/6","number":6,"state":"open","locked":false,"title":"Reorder Videos, Push Down Complexity, Change Rating in My Queue","user":{"login":"prereflect","id":1589566,"avatar_url":"https://avatars.githubusercontent.com/u/1589566?v=3","gravatar_id":"","url":"https://api.github.com/users/prereflect","html_url":"https://github.com/prereflect","followers_url":"https://api.github.com/users/prereflect/followers","following_url":"https://api.github.com/users/prereflect/following{/other_user}","gists_url":"https://api.github.com/users/prereflect/gists{/gist_id}","starred_url":"https://api.github.com/users/prereflect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prereflect/subscriptions","organizations_url":"https://api.github.com/users/prereflect/orgs","repos_url":"https://api.github.com/users/prereflect/repos","events_url":"https://api.github.com/users/prereflect/events{/privacy}","received_events_url":"https://api.github.com/users/prereflect/received_events","type":"User","site_admin":false},"body":"User can reorder videos in the queue\r\nPush down complexity\r\nUser can change video ratings in the queue","created_at":"2015-07-12T22:22:27Z","updated_at":"2015-07-13T12:11:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fbcc6f6b9ac99353583d6aadcab97ecd95f10353","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prereflect/tl-myflix/pulls/6/commits","review_comments_url":"https://api.github.com/repos/prereflect/tl-myflix/pulls/6/comments","review_comment_url":"https://api.github.com/repos/prereflect/tl-myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prereflect/tl-myflix/issues/6/comments","statuses_url":"https://api.github.com/repos/prereflect/tl-myflix/statuses/38a18cd84ad1b8a0ed8afe3d8df3b3e7c04c0443","head":{"label":"prereflect:reorder-change-rating","ref":"reorder-change-rating","sha":"38a18cd84ad1b8a0ed8afe3d8df3b3e7c04c0443","user":{"login":"prereflect","id":1589566,"avatar_url":"https://avatars.githubusercontent.com/u/1589566?v=3","gravatar_id":"","url":"https://api.github.com/users/prereflect","html_url":"https://github.com/prereflect","followers_url":"https://api.github.com/users/prereflect/followers","following_url":"https://api.github.com/users/prereflect/following{/other_user}","gists_url":"https://api.github.com/users/prereflect/gists{/gist_id}","starred_url":"https://api.github.com/users/prereflect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prereflect/subscriptions","organizations_url":"https://api.github.com/users/prereflect/orgs","repos_url":"https://api.github.com/users/prereflect/repos","events_url":"https://api.github.com/users/prereflect/events{/privacy}","received_events_url":"https://api.github.com/users/prereflect/received_events","type":"User","site_admin":false},"repo":{"id":35509819,"name":"tl-myflix","full_name":"prereflect/tl-myflix","owner":{"login":"prereflect","id":1589566,"avatar_url":"https://avatars.githubusercontent.com/u/1589566?v=3","gravatar_id":"","url":"https://api.github.com/users/prereflect","html_url":"https://github.com/prereflect","followers_url":"https://api.github.com/users/prereflect/followers","following_url":"https://api.github.com/users/prereflect/following{/other_user}","gists_url":"https://api.github.com/users/prereflect/gists{/gist_id}","starred_url":"https://api.github.com/users/prereflect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prereflect/subscriptions","organizations_url":"https://api.github.com/users/prereflect/orgs","repos_url":"https://api.github.com/users/prereflect/repos","events_url":"https://api.github.com/users/prereflect/events{/privacy}","received_events_url":"https://api.github.com/users/prereflect/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prereflect/tl-myflix","description":"Netflix clone","fork":false,"url":"https://api.github.com/repos/prereflect/tl-myflix","forks_url":"https://api.github.com/repos/prereflect/tl-myflix/forks","keys_url":"https://api.github.com/repos/prereflect/tl-myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prereflect/tl-myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prereflect/tl-myflix/teams","hooks_url":"https://api.github.com/repos/prereflect/tl-myflix/hooks","issue_events_url":"https://api.github.com/repos/prereflect/tl-myflix/issues/events{/number}","events_url":"https://api.github.com/repos/prereflect/tl-myflix/events","assignees_url":"https://api.github.com/repos/prereflect/tl-myflix/assignees{/user}","branches_url":"https://api.github.com/repos/prereflect/tl-myflix/branches{/branch}","tags_url":"https://api.github.com/repos/prereflect/tl-myflix/tags","blobs_url":"https://api.github.com/repos/prereflect/tl-myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prereflect/tl-myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prereflect/tl-myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/prereflect/tl-myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prereflect/tl-myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/prereflect/tl-myflix/languages","stargazers_url":"https://api.github.com/repos/prereflect/tl-myflix/stargazers","contributors_url":"https://api.github.com/repos/prereflect/tl-myflix/contributors","subscribers_url":"https://api.github.com/repos/prereflect/tl-myflix/subscribers","subscription_url":"https://api.github.com/repos/prereflect/tl-myflix/subscription","commits_url":"https://api.github.com/repos/prereflect/tl-myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/prereflect/tl-myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/prereflect/tl-myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/prereflect/tl-myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/prereflect/tl-myflix/contents/{+path}","compare_url":"https://api.github.com/repos/prereflect/tl-myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prereflect/tl-myflix/merges","archive_url":"https://api.github.com/repos/prereflect/tl-myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prereflect/tl-myflix/downloads","issues_url":"https://api.github.com/repos/prereflect/tl-myflix/issues{/number}","pulls_url":"https://api.github.com/repos/prereflect/tl-myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/prereflect/tl-myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/prereflect/tl-myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prereflect/tl-myflix/labels{/name}","releases_url":"https://api.github.com/repos/prereflect/tl-myflix/releases{/id}","created_at":"2015-05-12T20:01:16Z","updated_at":"2015-06-13T09:45:46Z","pushed_at":"2015-07-12T22:22:27Z","git_url":"git://github.com/prereflect/tl-myflix.git","ssh_url":"git@github.com:prereflect/tl-myflix.git","clone_url":"https://github.com/prereflect/tl-myflix.git","svn_url":"https://github.com/prereflect/tl-myflix","homepage":"","size":1468,"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":"prereflect:master","ref":"master","sha":"5759ef11c4e735fe431d5e588bc6f92c4e6585b0","user":{"login":"prereflect","id":1589566,"avatar_url":"https://avatars.githubusercontent.com/u/1589566?v=3","gravatar_id":"","url":"https://api.github.com/users/prereflect","html_url":"https://github.com/prereflect","followers_url":"https://api.github.com/users/prereflect/followers","following_url":"https://api.github.com/users/prereflect/following{/other_user}","gists_url":"https://api.github.com/users/prereflect/gists{/gist_id}","starred_url":"https://api.github.com/users/prereflect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prereflect/subscriptions","organizations_url":"https://api.github.com/users/prereflect/orgs","repos_url":"https://api.github.com/users/prereflect/repos","events_url":"https://api.github.com/users/prereflect/events{/privacy}","received_events_url":"https://api.github.com/users/prereflect/received_events","type":"User","site_admin":false},"repo":{"id":35509819,"name":"tl-myflix","full_name":"prereflect/tl-myflix","owner":{"login":"prereflect","id":1589566,"avatar_url":"https://avatars.githubusercontent.com/u/1589566?v=3","gravatar_id":"","url":"https://api.github.com/users/prereflect","html_url":"https://github.com/prereflect","followers_url":"https://api.github.com/users/prereflect/followers","following_url":"https://api.github.com/users/prereflect/following{/other_user}","gists_url":"https://api.github.com/users/prereflect/gists{/gist_id}","starred_url":"https://api.github.com/users/prereflect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prereflect/subscriptions","organizations_url":"https://api.github.com/users/prereflect/orgs","repos_url":"https://api.github.com/users/prereflect/repos","events_url":"https://api.github.com/users/prereflect/events{/privacy}","received_events_url":"https://api.github.com/users/prereflect/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prereflect/tl-myflix","description":"Netflix clone","fork":false,"url":"https://api.github.com/repos/prereflect/tl-myflix","forks_url":"https://api.github.com/repos/prereflect/tl-myflix/forks","keys_url":"https://api.github.com/repos/prereflect/tl-myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prereflect/tl-myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prereflect/tl-myflix/teams","hooks_url":"https://api.github.com/repos/prereflect/tl-myflix/hooks","issue_events_url":"https://api.github.com/repos/prereflect/tl-myflix/issues/events{/number}","events_url":"https://api.github.com/repos/prereflect/tl-myflix/events","assignees_url":"https://api.github.com/repos/prereflect/tl-myflix/assignees{/user}","branches_url":"https://api.github.com/repos/prereflect/tl-myflix/branches{/branch}","tags_url":"https://api.github.com/repos/prereflect/tl-myflix/tags","blobs_url":"https://api.github.com/repos/prereflect/tl-myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prereflect/tl-myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prereflect/tl-myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/prereflect/tl-myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prereflect/tl-myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/prereflect/tl-myflix/languages","stargazers_url":"https://api.github.com/repos/prereflect/tl-myflix/stargazers","contributors_url":"https://api.github.com/repos/prereflect/tl-myflix/contributors","subscribers_url":"https://api.github.com/repos/prereflect/tl-myflix/subscribers","subscription_url":"https://api.github.com/repos/prereflect/tl-myflix/subscription","commits_url":"https://api.github.com/repos/prereflect/tl-myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/prereflect/tl-myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/prereflect/tl-myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/prereflect/tl-myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/prereflect/tl-myflix/contents/{+path}","compare_url":"https://api.github.com/repos/prereflect/tl-myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prereflect/tl-myflix/merges","archive_url":"https://api.github.com/repos/prereflect/tl-myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prereflect/tl-myflix/downloads","issues_url":"https://api.github.com/repos/prereflect/tl-myflix/issues{/number}","pulls_url":"https://api.github.com/repos/prereflect/tl-myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/prereflect/tl-myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/prereflect/tl-myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prereflect/tl-myflix/labels{/name}","releases_url":"https://api.github.com/repos/prereflect/tl-myflix/releases{/id}","created_at":"2015-05-12T20:01:16Z","updated_at":"2015-06-13T09:45:46Z","pushed_at":"2015-07-12T22:22:27Z","git_url":"git://github.com/prereflect/tl-myflix.git","ssh_url":"git@github.com:prereflect/tl-myflix.git","clone_url":"https://github.com/prereflect/tl-myflix.git","svn_url":"https://github.com/prereflect/tl-myflix","homepage":"","size":1468,"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/prereflect/tl-myflix/pulls/6"},"html":{"href":"https://github.com/prereflect/tl-myflix/pull/6"},"issue":{"href":"https://api.github.com/repos/prereflect/tl-myflix/issues/6"},"comments":{"href":"https://api.github.com/repos/prereflect/tl-myflix/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/prereflect/tl-myflix/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/prereflect/tl-myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prereflect/tl-myflix/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/prereflect/tl-myflix/statuses/38a18cd84ad1b8a0ed8afe3d8df3b3e7c04c0443"}}}}