{"action":"created","comment":{"url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/comments/24947502","id":24947502,"diff_hunk":"@@ -0,0 +1,46 @@\n+\n+get '/accounts/login' do\n+  erb :login\n+end\n+\n+post '/accounts/login' do\n+  user = User.find_by(email: params[:email])\n+  db_password = user.password_hash\n+  if db_password == params[:password]\n+    session[:current_user_id] = user.id\n+    redirect ('/accounts/' + user.username)\n+  else\n+    @error = \"Your email or password did not match. Please try again.\"\n+    erb :login\n+  end\n+end\n+\n+get '/accounts/:username/edit' do\n+  @user = session_current_user\n+  erb :edit_account\n+end\n+\n+# bugs with username\n+put '/accounts/:username/edit' do","path":"app/controllers/account_controllers.rb","position":24,"original_position":24,"commit_id":"59c31d3d90d783baacb80812169cd0f2d354a290","original_commit_id":"59c31d3d90d783baacb80812169cd0f2d354a290","user":{"login":"jareddbc","id":4805277,"avatar_url":"https://avatars.githubusercontent.com/u/4805277?v=3","gravatar_id":"","url":"https://api.github.com/users/jareddbc","html_url":"https://github.com/jareddbc","followers_url":"https://api.github.com/users/jareddbc/followers","following_url":"https://api.github.com/users/jareddbc/following{/other_user}","gists_url":"https://api.github.com/users/jareddbc/gists{/gist_id}","starred_url":"https://api.github.com/users/jareddbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jareddbc/subscriptions","organizations_url":"https://api.github.com/users/jareddbc/orgs","repos_url":"https://api.github.com/users/jareddbc/repos","events_url":"https://api.github.com/users/jareddbc/events{/privacy}","received_events_url":"https://api.github.com/users/jareddbc/received_events","type":"User","site_admin":false},"body":"Restful convention would be `put '/users/:user_id' do` as the update route for a user. Checkout this guide for more info: http://guides.rubyonrails.org/routing.html","created_at":"2015-02-18T22:28:35Z","updated_at":"2015-02-18T22:28:35Z","html_url":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project/pull/13#discussion_r24947502","pull_request_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/comments/24947502"},"html":{"href":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project/pull/13#discussion_r24947502"},"pull_request":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13","id":28900206,"html_url":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project/pull/13","diff_url":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project/pull/13.diff","patch_url":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project/pull/13.patch","issue_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/issues/13","number":13,"state":"open","locked":false,"title":"Excited to share this app!","user":{"login":"mcvalera","id":7662869,"avatar_url":"https://avatars.githubusercontent.com/u/7662869?v=3","gravatar_id":"","url":"https://api.github.com/users/mcvalera","html_url":"https://github.com/mcvalera","followers_url":"https://api.github.com/users/mcvalera/followers","following_url":"https://api.github.com/users/mcvalera/following{/other_user}","gists_url":"https://api.github.com/users/mcvalera/gists{/gist_id}","starred_url":"https://api.github.com/users/mcvalera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcvalera/subscriptions","organizations_url":"https://api.github.com/users/mcvalera/orgs","repos_url":"https://api.github.com/users/mcvalera/repos","events_url":"https://api.github.com/users/mcvalera/events{/privacy}","received_events_url":"https://api.github.com/users/mcvalera/received_events","type":"User","site_admin":false},"body":"I think I got all the necessary stuff as well as some extra things that I was excited to try and learn from. I am looking forward to feedback! I learned so much and had a blast making this project! There are some notes that I put in on the ReadMe doc if you encounter any issues with running this.\r\n\r\nI also apologize for all the previous pull requests! I wasn't aware that I was doing a pull request on the main repo as opposed to my own repo. I closed those now. ","created_at":"2015-02-09T07:06:34Z","updated_at":"2015-02-18T22:28:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"496587b62546ce9e55ced01ccb8961f67fbf0e98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13/commits","review_comments_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13/comments","review_comment_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/issues/13/comments","statuses_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/statuses/59c31d3d90d783baacb80812169cd0f2d354a290","head":{"label":"mcvalera:master","ref":"master","sha":"59c31d3d90d783baacb80812169cd0f2d354a290","user":{"login":"mcvalera","id":7662869,"avatar_url":"https://avatars.githubusercontent.com/u/7662869?v=3","gravatar_id":"","url":"https://api.github.com/users/mcvalera","html_url":"https://github.com/mcvalera","followers_url":"https://api.github.com/users/mcvalera/followers","following_url":"https://api.github.com/users/mcvalera/following{/other_user}","gists_url":"https://api.github.com/users/mcvalera/gists{/gist_id}","starred_url":"https://api.github.com/users/mcvalera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcvalera/subscriptions","organizations_url":"https://api.github.com/users/mcvalera/orgs","repos_url":"https://api.github.com/users/mcvalera/repos","events_url":"https://api.github.com/users/mcvalera/events{/privacy}","received_events_url":"https://api.github.com/users/mcvalera/received_events","type":"User","site_admin":false},"repo":{"id":30426651,"name":"ph2-pA-week-1-passion-project","full_name":"mcvalera/ph2-pA-week-1-passion-project","owner":{"login":"mcvalera","id":7662869,"avatar_url":"https://avatars.githubusercontent.com/u/7662869?v=3","gravatar_id":"","url":"https://api.github.com/users/mcvalera","html_url":"https://github.com/mcvalera","followers_url":"https://api.github.com/users/mcvalera/followers","following_url":"https://api.github.com/users/mcvalera/following{/other_user}","gists_url":"https://api.github.com/users/mcvalera/gists{/gist_id}","starred_url":"https://api.github.com/users/mcvalera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcvalera/subscriptions","organizations_url":"https://api.github.com/users/mcvalera/orgs","repos_url":"https://api.github.com/users/mcvalera/repos","events_url":"https://api.github.com/users/mcvalera/events{/privacy}","received_events_url":"https://api.github.com/users/mcvalera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcvalera/ph2-pA-week-1-passion-project","description":"","fork":true,"url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project","forks_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/forks","keys_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/teams","hooks_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/hooks","issue_events_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/issues/events{/number}","events_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/events","assignees_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/assignees{/user}","branches_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/branches{/branch}","tags_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/tags","blobs_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/statuses/{sha}","languages_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/languages","stargazers_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/stargazers","contributors_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/contributors","subscribers_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/subscribers","subscription_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/subscription","commits_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/issues/comments/{number}","contents_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/contents/{+path}","compare_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/merges","archive_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/downloads","issues_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/issues{/number}","pulls_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/pulls{/number}","milestones_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/milestones{/number}","notifications_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/labels{/name}","releases_url":"https://api.github.com/repos/mcvalera/ph2-pA-week-1-passion-project/releases{/id}","created_at":"2015-02-06T18:27:02Z","updated_at":"2015-02-09T06:58:07Z","pushed_at":"2015-02-09T06:58:07Z","git_url":"git://github.com/mcvalera/ph2-pA-week-1-passion-project.git","ssh_url":"git@github.com:mcvalera/ph2-pA-week-1-passion-project.git","clone_url":"https://github.com/mcvalera/ph2-pA-week-1-passion-project.git","svn_url":"https://github.com/mcvalera/ph2-pA-week-1-passion-project","homepage":null,"size":386,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sf-squirrels-2015:master","ref":"master","sha":"29609cb497d625caed0bec0fe0d03af9670828bc","user":{"login":"sf-squirrels-2015","id":10455711,"avatar_url":"https://avatars.githubusercontent.com/u/10455711?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-squirrels-2015","html_url":"https://github.com/sf-squirrels-2015","followers_url":"https://api.github.com/users/sf-squirrels-2015/followers","following_url":"https://api.github.com/users/sf-squirrels-2015/following{/other_user}","gists_url":"https://api.github.com/users/sf-squirrels-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-squirrels-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-squirrels-2015/subscriptions","organizations_url":"https://api.github.com/users/sf-squirrels-2015/orgs","repos_url":"https://api.github.com/users/sf-squirrels-2015/repos","events_url":"https://api.github.com/users/sf-squirrels-2015/events{/privacy}","received_events_url":"https://api.github.com/users/sf-squirrels-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":30276334,"name":"ph2-pA-week-1-passion-project","full_name":"sf-squirrels-2015/ph2-pA-week-1-passion-project","owner":{"login":"sf-squirrels-2015","id":10455711,"avatar_url":"https://avatars.githubusercontent.com/u/10455711?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-squirrels-2015","html_url":"https://github.com/sf-squirrels-2015","followers_url":"https://api.github.com/users/sf-squirrels-2015/followers","following_url":"https://api.github.com/users/sf-squirrels-2015/following{/other_user}","gists_url":"https://api.github.com/users/sf-squirrels-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-squirrels-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-squirrels-2015/subscriptions","organizations_url":"https://api.github.com/users/sf-squirrels-2015/orgs","repos_url":"https://api.github.com/users/sf-squirrels-2015/repos","events_url":"https://api.github.com/users/sf-squirrels-2015/events{/privacy}","received_events_url":"https://api.github.com/users/sf-squirrels-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project","description":"","fork":false,"url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project","forks_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/forks","keys_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/teams","hooks_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/hooks","issue_events_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/issues/events{/number}","events_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/events","assignees_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/assignees{/user}","branches_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/branches{/branch}","tags_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/tags","blobs_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/statuses/{sha}","languages_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/languages","stargazers_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/stargazers","contributors_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/contributors","subscribers_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/subscribers","subscription_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/subscription","commits_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/issues/comments/{number}","contents_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/contents/{+path}","compare_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/merges","archive_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/downloads","issues_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/issues{/number}","pulls_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls{/number}","milestones_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/milestones{/number}","notifications_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/labels{/name}","releases_url":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/releases{/id}","created_at":"2015-02-04T02:09:34Z","updated_at":"2015-02-04T02:09:34Z","pushed_at":"2015-02-07T21:33:49Z","git_url":"git://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project.git","ssh_url":"git@github.com:sf-squirrels-2015/ph2-pA-week-1-passion-project.git","clone_url":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project.git","svn_url":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project","homepage":null,"size":214,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":20,"forks":19,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13"},"html":{"href":"https://github.com/sf-squirrels-2015/ph2-pA-week-1-passion-project/pull/13"},"issue":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/issues/13"},"comments":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/sf-squirrels-2015/ph2-pA-week-1-passion-project/statuses/59c31d3d90d783baacb80812169cd0f2d354a290"}}}}