{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/250","repository_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/250/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/250/events","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/250","id":151950173,"number":250,"title":"Editing controller for authentication","user":{"login":"MichaelB167","id":17414119,"avatar_url":"https://avatars.githubusercontent.com/u/17414119?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelB167","html_url":"https://github.com/MichaelB167","followers_url":"https://api.github.com/users/MichaelB167/followers","following_url":"https://api.github.com/users/MichaelB167/following{/other_user}","gists_url":"https://api.github.com/users/MichaelB167/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelB167/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelB167/subscriptions","organizations_url":"https://api.github.com/users/MichaelB167/orgs","repos_url":"https://api.github.com/users/MichaelB167/repos","events_url":"https://api.github.com/users/MichaelB167/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelB167/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-29T19:26:28Z","updated_at":"2016-04-29T19:32:37Z","closed_at":null,"body":"I had curl requests working for all actions in both of my tables and was just finished getting posts of gyms and climbs to work in the browser but realized that I had set up my controller improperly and the actions weren't being authenticated.  I'm just working on sending post requests to my gyms controller for now and having been testing with both curl requests and through the browser but am getting 400 errors.  This is the error via browser testing, I realize it's pointing to my gym parameters but they are unchanged from the previous controller version in which requests were working.  \r\n```\r\nStarted POST \"/gyms\" for ::1 at 2016-04-29 15:18:53 -0400\r\nProcessing by GymsController#create as HTML\r\n  Parameters: {\"gyms\"=>{\"name\"=>\"Central Rock\", \"location\"=>\"Watertown\", \"date_visited\"=>\"2016-04-07\"}}\r\n  User Load (0.2ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"token\" = $1 LIMIT 1  [[\"token\", \"9dd151fa5f8790ef3d6043a6e228994c\"]]\r\nCompleted 400 Bad Request in 11ms (ActiveRecord: 0.8ms)\r\n\r\nActionController::ParameterMissing (param is missing or the value is empty: gym):\r\n  app/controllers/gyms_controller.rb:58:in `gym_params'\r\n  app/controllers/gyms_controller.rb:22:in `create'\r\n\r\n\r\n  Rendered /usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.6ms)\r\n  Rendered /usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms)\r\n  Rendered /usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)\r\n  Rendered /usr/local/var/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (36.4ms)\r\n``` "},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/comments/215856473","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/250#issuecomment-215856473","issue_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/250","id":215856473,"user":{"login":"J-Weeks","id":10408784,"avatar_url":"https://avatars.githubusercontent.com/u/10408784?v=3","gravatar_id":"","url":"https://api.github.com/users/J-Weeks","html_url":"https://github.com/J-Weeks","followers_url":"https://api.github.com/users/J-Weeks/followers","following_url":"https://api.github.com/users/J-Weeks/following{/other_user}","gists_url":"https://api.github.com/users/J-Weeks/gists{/gist_id}","starred_url":"https://api.github.com/users/J-Weeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-Weeks/subscriptions","organizations_url":"https://api.github.com/users/J-Weeks/orgs","repos_url":"https://api.github.com/users/J-Weeks/repos","events_url":"https://api.github.com/users/J-Weeks/events{/privacy}","received_events_url":"https://api.github.com/users/J-Weeks/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T19:32:37Z","updated_at":"2016-04-29T19:32:37Z","body":"See #243 "}}