{"action":"created","comment":{"url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments/75586979","id":75586979,"diff_hunk":"@@ -6,12 +6,22 @@\n     resources :jobs,      only: [:new, :create, :edit, :update]\n   end\n \n-  resources :jobs_favorites, only: [:create, :update, :destroy]\n+  namespace :employer do\n+    resources :dashboard, only: [:index]\n+    resources :jobs, only: [:new, :create, :edit, :update]\n+  end\n+\n+\n+  resources :companies, only: [:index]\n+  get \"/companies/:slug\", to: \"companies#show\", as: \"company\"","path":"config/routes.rb","position":12,"original_position":12,"commit_id":"e47909c4d699e1bdf153b73c6efb3218f47a6df8","original_commit_id":"e47909c4d699e1bdf153b73c6efb3218f47a6df8","user":{"login":"jmejia","id":73824,"avatar_url":"https://avatars.githubusercontent.com/u/73824?v=3","gravatar_id":"","url":"https://api.github.com/users/jmejia","html_url":"https://github.com/jmejia","followers_url":"https://api.github.com/users/jmejia/followers","following_url":"https://api.github.com/users/jmejia/following{/other_user}","gists_url":"https://api.github.com/users/jmejia/gists{/gist_id}","starred_url":"https://api.github.com/users/jmejia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmejia/subscriptions","organizations_url":"https://api.github.com/users/jmejia/orgs","repos_url":"https://api.github.com/users/jmejia/repos","events_url":"https://api.github.com/users/jmejia/events{/privacy}","received_events_url":"https://api.github.com/users/jmejia/received_events","type":"User","site_admin":false},"body":"@NicoleKMarino Let's simplify these two lines with something like:\r\n```ruby\r\nresources :companies, only: [:index, :show], param: :slug\r\n```","created_at":"2016-08-21T00:30:07Z","updated_at":"2016-08-21T00:30:07Z","html_url":"https://github.com/NicoleKMarino/the_pivot/pull/72#discussion_r75586979","pull_request_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments/75586979"},"html":{"href":"https://github.com/NicoleKMarino/the_pivot/pull/72#discussion_r75586979"},"pull_request":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72","id":82091946,"html_url":"https://github.com/NicoleKMarino/the_pivot/pull/72","diff_url":"https://github.com/NicoleKMarino/the_pivot/pull/72.diff","patch_url":"https://github.com/NicoleKMarino/the_pivot/pull/72.patch","issue_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/72","number":72,"state":"open","locked":false,"title":"23 user can see saved jobs","user":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"body":"A user can now save a job for later, view their saved jobs from their dashboard, delete a saved job, and can't save a job twice \r\n\r\n@jmejia- any suggestions for refactoring? \r\n","created_at":"2016-08-20T23:01:49Z","updated_at":"2016-08-21T00:30:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1690e000f75aacf6ab0b3923322d103b80141e96","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72/commits","review_comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72/comments","review_comment_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/72/comments","statuses_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/e47909c4d699e1bdf153b73c6efb3218f47a6df8","head":{"label":"NicoleKMarino:23-user_can_see_saved_jobs","ref":"23-user_can_see_saved_jobs","sha":"e47909c4d699e1bdf153b73c6efb3218f47a6df8","user":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"repo":{"id":65752676,"name":"the_pivot","full_name":"NicoleKMarino/the_pivot","owner":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleKMarino/the_pivot","description":"rails, mvc, PostgreSQL, multi-tenancy, bcrypt  ","fork":false,"url":"https://api.github.com/repos/NicoleKMarino/the_pivot","forks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/forks","keys_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/teams","hooks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/events","assignees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/tags","blobs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/languages","stargazers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscription","commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/merges","archive_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/downloads","issues_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/deployments","created_at":"2016-08-15T17:52:13Z","updated_at":"2016-08-20T01:20:06Z","pushed_at":"2016-08-21T00:27:10Z","git_url":"git://github.com/NicoleKMarino/the_pivot.git","ssh_url":"git@github.com:NicoleKMarino/the_pivot.git","clone_url":"https://github.com/NicoleKMarino/the_pivot.git","svn_url":"https://github.com/NicoleKMarino/the_pivot","homepage":"","size":2525,"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":33,"forks":0,"open_issues":33,"watchers":0,"default_branch":"master"}},"base":{"label":"NicoleKMarino:develop","ref":"develop","sha":"e18c5a4fa995fa0fcbe81cd53fcb3f560ec51f5f","user":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"repo":{"id":65752676,"name":"the_pivot","full_name":"NicoleKMarino/the_pivot","owner":{"login":"NicoleKMarino","id":16449672,"avatar_url":"https://avatars.githubusercontent.com/u/16449672?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleKMarino","html_url":"https://github.com/NicoleKMarino","followers_url":"https://api.github.com/users/NicoleKMarino/followers","following_url":"https://api.github.com/users/NicoleKMarino/following{/other_user}","gists_url":"https://api.github.com/users/NicoleKMarino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleKMarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleKMarino/subscriptions","organizations_url":"https://api.github.com/users/NicoleKMarino/orgs","repos_url":"https://api.github.com/users/NicoleKMarino/repos","events_url":"https://api.github.com/users/NicoleKMarino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleKMarino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleKMarino/the_pivot","description":"rails, mvc, PostgreSQL, multi-tenancy, bcrypt  ","fork":false,"url":"https://api.github.com/repos/NicoleKMarino/the_pivot","forks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/forks","keys_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/teams","hooks_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/events","assignees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/tags","blobs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/languages","stargazers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/subscription","commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/merges","archive_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/downloads","issues_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleKMarino/the_pivot/deployments","created_at":"2016-08-15T17:52:13Z","updated_at":"2016-08-20T01:20:06Z","pushed_at":"2016-08-21T00:27:10Z","git_url":"git://github.com/NicoleKMarino/the_pivot.git","ssh_url":"git@github.com:NicoleKMarino/the_pivot.git","clone_url":"https://github.com/NicoleKMarino/the_pivot.git","svn_url":"https://github.com/NicoleKMarino/the_pivot","homepage":"","size":2525,"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":33,"forks":0,"open_issues":33,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72"},"html":{"href":"https://github.com/NicoleKMarino/the_pivot/pull/72"},"issue":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/72"},"comments":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/NicoleKMarino/the_pivot/statuses/e47909c4d699e1bdf153b73c6efb3218f47a6df8"}}}}
{"actor":{"display_login":"jmejia"}}