{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/comments/34936844","id":34936844,"diff_hunk":"@@ -0,0 +1,19 @@\n+<%= form_for @task, url: { action: @action}, method: @method do |f| %>","path":"app/views/tasks/_form.html.erb","position":1,"original_position":1,"commit_id":"8d59841b95da31b4f34f50ac3faa9b02a56b3d7b","original_commit_id":"8d59841b95da31b4f34f50ac3faa9b02a56b3d7b","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":"Nice job with the shared form using the action and method","created_at":"2015-07-17T22:34:37Z","updated_at":"2015-07-17T22:34:37Z","html_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/42#discussion_r34936844","pull_request_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/comments/34936844"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/42#discussion_r34936844"},"pull_request":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/42","id":38198441,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/42","diff_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/42.diff","patch_url":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/42.patch","issue_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/42","number":42,"state":"open","locked":false,"title":"TaskList Rails Wave 3","user":{"login":"arhx","id":9326892,"avatar_url":"https://avatars.githubusercontent.com/u/9326892?v=3","gravatar_id":"","url":"https://api.github.com/users/arhx","html_url":"https://github.com/arhx","followers_url":"https://api.github.com/users/arhx/followers","following_url":"https://api.github.com/users/arhx/following{/other_user}","gists_url":"https://api.github.com/users/arhx/gists{/gist_id}","starred_url":"https://api.github.com/users/arhx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arhx/subscriptions","organizations_url":"https://api.github.com/users/arhx/orgs","repos_url":"https://api.github.com/users/arhx/repos","events_url":"https://api.github.com/users/arhx/events{/privacy}","received_events_url":"https://api.github.com/users/arhx/received_events","type":"User","site_admin":false},"body":"I used a few partials (_form, _table) to dry up my views; I think they might have made my controller more complicated though. I want to learn how to best share a form across multiple views without setting a bunch of instance variables in the controller methods.\r\n\r\nI also want to learn how to use helper methods, so I can control which view shows buttons like \"cancel\" or \"home\" without duplicating the code across multiple locations.\r\n\r\nI'm also unsure as to where some logic should go -- eg. formatting dates. Should that stay in the controller methods, be in the view, or be in a helper? Thanks for your review and comments.","created_at":"2015-06-22T03:50:25Z","updated_at":"2015-07-17T22:34:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"554d3eea151d79402c3cff8264472fed091b0519","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/42/commits","review_comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/42/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/42/comments","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/statuses/8d59841b95da31b4f34f50ac3faa9b02a56b3d7b","head":{"label":"arhx:ar/master","ref":"ar/master","sha":"8d59841b95da31b4f34f50ac3faa9b02a56b3d7b","user":{"login":"arhx","id":9326892,"avatar_url":"https://avatars.githubusercontent.com/u/9326892?v=3","gravatar_id":"","url":"https://api.github.com/users/arhx","html_url":"https://github.com/arhx","followers_url":"https://api.github.com/users/arhx/followers","following_url":"https://api.github.com/users/arhx/following{/other_user}","gists_url":"https://api.github.com/users/arhx/gists{/gist_id}","starred_url":"https://api.github.com/users/arhx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arhx/subscriptions","organizations_url":"https://api.github.com/users/arhx/orgs","repos_url":"https://api.github.com/users/arhx/repos","events_url":"https://api.github.com/users/arhx/events{/privacy}","received_events_url":"https://api.github.com/users/arhx/received_events","type":"User","site_admin":false},"repo":{"id":37612458,"name":"C3Projects--TaskListRails","full_name":"arhx/C3Projects--TaskListRails","owner":{"login":"arhx","id":9326892,"avatar_url":"https://avatars.githubusercontent.com/u/9326892?v=3","gravatar_id":"","url":"https://api.github.com/users/arhx","html_url":"https://github.com/arhx","followers_url":"https://api.github.com/users/arhx/followers","following_url":"https://api.github.com/users/arhx/following{/other_user}","gists_url":"https://api.github.com/users/arhx/gists{/gist_id}","starred_url":"https://api.github.com/users/arhx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arhx/subscriptions","organizations_url":"https://api.github.com/users/arhx/orgs","repos_url":"https://api.github.com/users/arhx/repos","events_url":"https://api.github.com/users/arhx/events{/privacy}","received_events_url":"https://api.github.com/users/arhx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arhx/C3Projects--TaskListRails","description":"","fork":true,"url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails","forks_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/forks","keys_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/teams","hooks_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/hooks","issue_events_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/issues/events{/number}","events_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/events","assignees_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/assignees{/user}","branches_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/branches{/branch}","tags_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/tags","blobs_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/statuses/{sha}","languages_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/languages","stargazers_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/stargazers","contributors_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/contributors","subscribers_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/subscribers","subscription_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/subscription","commits_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/contents/{+path}","compare_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/merges","archive_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/downloads","issues_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/issues{/number}","pulls_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/pulls{/number}","milestones_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/milestones{/number}","notifications_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/labels{/name}","releases_url":"https://api.github.com/repos/arhx/C3Projects--TaskListRails/releases{/id}","created_at":"2015-06-17T18:15:16Z","updated_at":"2015-06-17T18:15:17Z","pushed_at":"2015-06-23T05:54:41Z","git_url":"git://github.com/arhx/C3Projects--TaskListRails.git","ssh_url":"git@github.com:arhx/C3Projects--TaskListRails.git","clone_url":"https://github.com/arhx/C3Projects--TaskListRails.git","svn_url":"https://github.com/arhx/C3Projects--TaskListRails","homepage":null,"size":418,"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:ar/master","ref":"ar/master","sha":"3041d829bb30583a3e88405cc79c335bad4b8380","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/42"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--TaskListRails/pull/42"},"issue":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/42"},"comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/pulls/42/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/42/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--TaskListRails/statuses/8d59841b95da31b4f34f50ac3faa9b02a56b3d7b"}}}}