{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/19","labels_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/19/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/19/events","html_url":"https://github.com/ga-wdi-boston/rails-project-full-stack-app/issues/19","id":116174627,"number":19,"title":"Odd behavior with delete","user":{"login":"mkutter72","id":14790824,"avatar_url":"https://avatars.githubusercontent.com/u/14790824?v=3","gravatar_id":"","url":"https://api.github.com/users/mkutter72","html_url":"https://github.com/mkutter72","followers_url":"https://api.github.com/users/mkutter72/followers","following_url":"https://api.github.com/users/mkutter72/following{/other_user}","gists_url":"https://api.github.com/users/mkutter72/gists{/gist_id}","starred_url":"https://api.github.com/users/mkutter72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkutter72/subscriptions","organizations_url":"https://api.github.com/users/mkutter72/orgs","repos_url":"https://api.github.com/users/mkutter72/repos","events_url":"https://api.github.com/users/mkutter72/events{/privacy}","received_events_url":"https://api.github.com/users/mkutter72/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-10T18:46:15Z","updated_at":"2015-11-10T19:02:29Z","closed_at":null,"body":"I was having trouble with a delete function in a controller so I stripped everything out of it:\r\n\r\ndef destroy\r\nend\r\n\r\nand it still reports and error (in server window),  I'm confused about where the second query is coming from:\r\nStarted DELETE \"/messages/1\" for ::1 at 2015-11-10 13:45:25 -0500\r\nProcessing by MessagesController#destroy as HTML\r\n  Parameters: {\"id\"=>\"1\"}\r\n  User Load (0.2ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"token\" = $1 LIMIT 1  [[\"token\", \"81d3f9418f2c65c04055f50239265398\"]]\r\n  Message Load (0.3ms)  SELECT  \"messages\".* FROM \"messages\" WHERE \"messages\".\"id\" = $1 LIMIT 1  [[\"id\", 1]]\r\nCompleted 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)\r\n"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/comments/155532396","html_url":"https://github.com/ga-wdi-boston/rails-project-full-stack-app/issues/19#issuecomment-155532396","issue_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/19","id":155532396,"user":{"login":"tdyer","id":2217,"avatar_url":"https://avatars.githubusercontent.com/u/2217?v=3","gravatar_id":"","url":"https://api.github.com/users/tdyer","html_url":"https://github.com/tdyer","followers_url":"https://api.github.com/users/tdyer/followers","following_url":"https://api.github.com/users/tdyer/following{/other_user}","gists_url":"https://api.github.com/users/tdyer/gists{/gist_id}","starred_url":"https://api.github.com/users/tdyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdyer/subscriptions","organizations_url":"https://api.github.com/users/tdyer/orgs","repos_url":"https://api.github.com/users/tdyer/repos","events_url":"https://api.github.com/users/tdyer/events{/privacy}","received_events_url":"https://api.github.com/users/tdyer/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T19:02:29Z","updated_at":"2015-11-10T19:02:29Z","body":"try putting this at the end of  your destroy action\r\n\r\nhead :no_content"}}