{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/comments/34754666","id":34754666,"diff_hunk":"@@ -37,10 +37,40 @@ def confirm_delete\n     redirect_to :root\n   end\n \n+  def update\n+    Task.update((params[:id]), completed_on: Time.now)\n+\n+    index\n+  end\n+\n+  def uncheck_update\n+    Task.update((params[:id]), completed_on:\" \")","path":"app/controllers/task_controller.rb","position":29,"original_position":29,"commit_id":"233b247352e56ced70f2cf2fb39ad48bf96dd472","original_commit_id":"233b247352e56ced70f2cf2fb39ad48bf96dd472","user":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"body":"It would be better to set this field to nil rather than an empty string - especially if you have to use this data for any additional logic later","created_at":"2015-07-16T04:18:55Z","updated_at":"2015-07-16T04:18:55Z","html_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/31#discussion_r34754666","pull_request_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/comments/34754666"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/31#discussion_r34754666"},"pull_request":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31","id":38188943,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/31","diff_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/31.diff","patch_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/31.patch","issue_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/31","number":31,"state":"open","locked":false,"title":"Final wave completed","user":{"login":"vikshab","id":10720549,"avatar_url":"https://avatars.githubusercontent.com/u/10720549?v=3","gravatar_id":"","url":"https://api.github.com/users/vikshab","html_url":"https://github.com/vikshab","followers_url":"https://api.github.com/users/vikshab/followers","following_url":"https://api.github.com/users/vikshab/following{/other_user}","gists_url":"https://api.github.com/users/vikshab/gists{/gist_id}","starred_url":"https://api.github.com/users/vikshab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikshab/subscriptions","organizations_url":"https://api.github.com/users/vikshab/orgs","repos_url":"https://api.github.com/users/vikshab/repos","events_url":"https://api.github.com/users/vikshab/events{/privacy}","received_events_url":"https://api.github.com/users/vikshab/received_events","type":"User","site_admin":false},"body":" Final Wave completed\r\nTaskListRails - final wave complete\r\nHere is a link to heroku: https://intense-tundra-5436.herokuapp.com/\r\n\r\n\r\nI created 2 partials for  ``add_task``  and ``edit_task``forms, and they are in ``views/task`` and named as ``_form_new_task`` and ``_form_edit_task``. The forms are pretty similar, and I wanted to create just one partial for both forms, but I couldn't figure it out how to do that, because the ``_form_edit_task``  starts as ``<%= form_for @task, url: \"/task/edit_update/#{@task[:id]}\" do |t| %>`` while ``_form_new_task``  - ``<%= form_for @task do |t| %>``. I'd like to receive some advice on what part of  the above two extracts from forms I should  create variables ","created_at":"2015-06-21T19:06:37Z","updated_at":"2015-07-16T04:18:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1a99b94f17158603569b1faaf0c0e45d5afa55f","assignee":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31/commits","review_comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31/comments","review_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/31/comments","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/statuses/233b247352e56ced70f2cf2fb39ad48bf96dd472","head":{"label":"vikshab:vs/master","ref":"vs/master","sha":"233b247352e56ced70f2cf2fb39ad48bf96dd472","user":{"login":"vikshab","id":10720549,"avatar_url":"https://avatars.githubusercontent.com/u/10720549?v=3","gravatar_id":"","url":"https://api.github.com/users/vikshab","html_url":"https://github.com/vikshab","followers_url":"https://api.github.com/users/vikshab/followers","following_url":"https://api.github.com/users/vikshab/following{/other_user}","gists_url":"https://api.github.com/users/vikshab/gists{/gist_id}","starred_url":"https://api.github.com/users/vikshab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikshab/subscriptions","organizations_url":"https://api.github.com/users/vikshab/orgs","repos_url":"https://api.github.com/users/vikshab/repos","events_url":"https://api.github.com/users/vikshab/events{/privacy}","received_events_url":"https://api.github.com/users/vikshab/received_events","type":"User","site_admin":false},"repo":{"id":37612440,"name":"C3Projects--TaskListRails","full_name":"vikshab/C3Projects--TaskListRails","owner":{"login":"vikshab","id":10720549,"avatar_url":"https://avatars.githubusercontent.com/u/10720549?v=3","gravatar_id":"","url":"https://api.github.com/users/vikshab","html_url":"https://github.com/vikshab","followers_url":"https://api.github.com/users/vikshab/followers","following_url":"https://api.github.com/users/vikshab/following{/other_user}","gists_url":"https://api.github.com/users/vikshab/gists{/gist_id}","starred_url":"https://api.github.com/users/vikshab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikshab/subscriptions","organizations_url":"https://api.github.com/users/vikshab/orgs","repos_url":"https://api.github.com/users/vikshab/repos","events_url":"https://api.github.com/users/vikshab/events{/privacy}","received_events_url":"https://api.github.com/users/vikshab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vikshab/C3Projects--TaskListRails","description":"","fork":true,"url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails","forks_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/forks","keys_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/teams","hooks_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/hooks","issue_events_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/issues/events{/number}","events_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/events","assignees_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/assignees{/user}","branches_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/branches{/branch}","tags_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/tags","blobs_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/statuses/{sha}","languages_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/languages","stargazers_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/stargazers","contributors_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/contributors","subscribers_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/subscribers","subscription_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/subscription","commits_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/contents/{+path}","compare_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/merges","archive_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/downloads","issues_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/issues{/number}","pulls_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/pulls{/number}","milestones_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/milestones{/number}","notifications_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/labels{/name}","releases_url":"https://api.github.com/repos/vikshab/C3Projects--TaskListRails/releases{/id}","created_at":"2015-06-17T18:14:54Z","updated_at":"2015-06-17T18:14:54Z","pushed_at":"2015-06-23T03:02:58Z","git_url":"git://github.com/vikshab/C3Projects--TaskListRails.git","ssh_url":"git@github.com:vikshab/C3Projects--TaskListRails.git","clone_url":"https://github.com/vikshab/C3Projects--TaskListRails.git","svn_url":"https://github.com/vikshab/C3Projects--TaskListRails","homepage":null,"size":1570,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-Developers-Academy:vs/master","ref":"vs/master","sha":"5b97e27fd3a9ab4f71e46e478b4b7fa582d6caf3","user":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":37551255,"name":"C3Projects--TaskListRails","full_name":"Ada-Developers-Academy/C3Projects--TaskListRails","owner":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails","description":"","fork":false,"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails","forks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/forks","keys_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/teams","hooks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/hooks","issue_events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/events","assignees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/tags","blobs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/languages","stargazers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/stargazers","contributors_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/contributors","subscribers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/subscribers","subscription_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/subscription","commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/merges","archive_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/downloads","issues_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/labels{/name}","releases_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/releases{/id}","created_at":"2015-06-16T19:26:11Z","updated_at":"2015-06-17T16:36:54Z","pushed_at":"2015-07-07T07:11:58Z","git_url":"git://github.com/Ada-Developers-Academy/C3Projects--TaskListRails.git","ssh_url":"git@github.com:Ada-Developers-Academy/C3Projects--TaskListRails.git","clone_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails.git","svn_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails","homepage":null,"size":8002,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":22,"forks":25,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/31"},"issue":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/31"},"comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/statuses/233b247352e56ced70f2cf2fb39ad48bf96dd472"}}}}