{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/45","labels_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/45/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/45/events","html_url":"https://github.com/ga-wdi-boston/rails-project-full-stack-app/issues/45","id":116383012,"number":45,"title":"Patch request for /profiles controller ","user":{"login":"dhuddell","id":7210385,"avatar_url":"https://avatars.githubusercontent.com/u/7210385?v=3","gravatar_id":"","url":"https://api.github.com/users/dhuddell","html_url":"https://github.com/dhuddell","followers_url":"https://api.github.com/users/dhuddell/followers","following_url":"https://api.github.com/users/dhuddell/following{/other_user}","gists_url":"https://api.github.com/users/dhuddell/gists{/gist_id}","starred_url":"https://api.github.com/users/dhuddell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhuddell/subscriptions","organizations_url":"https://api.github.com/users/dhuddell/orgs","repos_url":"https://api.github.com/users/dhuddell/repos","events_url":"https://api.github.com/users/dhuddell/events{/privacy}","received_events_url":"https://api.github.com/users/dhuddell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-11T17:29:43Z","updated_at":"2015-11-11T18:10:21Z","closed_at":null,"body":"My patch request in my profiles controller is wrong. Server response involves:\r\n\r\n```\r\nStarted PATCH \"/profiles/?user_id=1\" for ::1 at 2015-11-11 12:24:14 -0500\r\nActionController::RoutingError (No route matches [PATCH] \"/profiles\"):\r\n```\r\nController looks like this: \r\n```\r\n# PATCH /profiles/1\r\n  def update\r\n    if @profile.update(update_params)\r\n      head :no_content\r\n    else\r\n      render json: @profile.errors, status: :unprocessable_entity\r\n    end\r\n  end\r\n```\r\nreferencing this:\r\n```\r\n  def update_params\r\n    params.require(:profile).permit(:nickname, :zip_code, :user_id)\r\n  end\r\n```"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/comments/155864448","html_url":"https://github.com/ga-wdi-boston/rails-project-full-stack-app/issues/45#issuecomment-155864448","issue_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/45","id":155864448,"user":{"login":"dhuddell","id":7210385,"avatar_url":"https://avatars.githubusercontent.com/u/7210385?v=3","gravatar_id":"","url":"https://api.github.com/users/dhuddell","html_url":"https://github.com/dhuddell","followers_url":"https://api.github.com/users/dhuddell/followers","following_url":"https://api.github.com/users/dhuddell/following{/other_user}","gists_url":"https://api.github.com/users/dhuddell/gists{/gist_id}","starred_url":"https://api.github.com/users/dhuddell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhuddell/subscriptions","organizations_url":"https://api.github.com/users/dhuddell/orgs","repos_url":"https://api.github.com/users/dhuddell/repos","events_url":"https://api.github.com/users/dhuddell/events{/privacy}","received_events_url":"https://api.github.com/users/dhuddell/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T18:10:21Z","updated_at":"2015-11-11T18:10:21Z","body":"I got some help from Jeff before he left and we restructured my profiles to be nested inside of users\r\nie `..url/users/[user_id]/profile` so I need to move forward to seeing how to work my controllers so that I can reach the route."}}