{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/project4/issues/86","labels_url":"https://api.github.com/repos/ga-dc/project4/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/project4/issues/86/comments","events_url":"https://api.github.com/repos/ga-dc/project4/issues/86/events","html_url":"https://github.com/ga-dc/project4/issues/86","id":126271225,"number":86,"title":"Creating a New Q","user":{"login":"thomhouseholder","id":13954451,"avatar_url":"https://avatars.githubusercontent.com/u/13954451?v=3","gravatar_id":"","url":"https://api.github.com/users/thomhouseholder","html_url":"https://github.com/thomhouseholder","followers_url":"https://api.github.com/users/thomhouseholder/followers","following_url":"https://api.github.com/users/thomhouseholder/following{/other_user}","gists_url":"https://api.github.com/users/thomhouseholder/gists{/gist_id}","starred_url":"https://api.github.com/users/thomhouseholder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomhouseholder/subscriptions","organizations_url":"https://api.github.com/users/thomhouseholder/orgs","repos_url":"https://api.github.com/users/thomhouseholder/repos","events_url":"https://api.github.com/users/thomhouseholder/events{/privacy}","received_events_url":"https://api.github.com/users/thomhouseholder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T20:43:57Z","updated_at":"2016-01-13T00:22:44Z","closed_at":"2016-01-12T20:51:09Z","body":"I'm trying to create a new question in my app and am getting a page not found error when I submit the form data.  \r\n\r\nI think I might not have the form set up correctly:\r\n\r\n```\r\n<form>\r\n  <input placeholder=\"Question Title\" data-ng-model=\"PostNewViewModel.post.questionTitle\" />\r\n  <textarea placeholder=\"What's your question?\" data-ng-model=\"PostNewViewModel.post.questionBody\" ></textarea>\r\n  <button type=\"button\" data-ng-click=\"PostNewViewModel.create()\">Create</button>\r\n</form>\r\n```\r\nor the new.controller function:\r\n```\r\nfunction PostNewControllerFunction( PostFactory ){\r\n      this.post = new PostFactory();\r\n      this.create = function(){\r\n        this.post.$save()\r\n      };\r\n      console.log(this.post);\r\n```\r\n\r\nCan I get an amen and a genius bar visit?\r\n\r\nMy back end is https://github.com/thomhouseholder/runners-app.\r\n\r\nFront end is https://github.com/thomhouseholder/runners-angular."},"comment":{"url":"https://api.github.com/repos/ga-dc/project4/issues/comments/171108813","html_url":"https://github.com/ga-dc/project4/issues/86#issuecomment-171108813","issue_url":"https://api.github.com/repos/ga-dc/project4/issues/86","id":171108813,"user":{"login":"RobertAKARobin","id":6268177,"avatar_url":"https://avatars.githubusercontent.com/u/6268177?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertAKARobin","html_url":"https://github.com/RobertAKARobin","followers_url":"https://api.github.com/users/RobertAKARobin/followers","following_url":"https://api.github.com/users/RobertAKARobin/following{/other_user}","gists_url":"https://api.github.com/users/RobertAKARobin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertAKARobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertAKARobin/subscriptions","organizations_url":"https://api.github.com/users/RobertAKARobin/orgs","repos_url":"https://api.github.com/users/RobertAKARobin/repos","events_url":"https://api.github.com/users/RobertAKARobin/events{/privacy}","received_events_url":"https://api.github.com/users/RobertAKARobin/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T00:22:43Z","updated_at":"2016-01-13T00:22:43Z","body":"We solved this by adding the `rack-cors` gem, removing all of the CORS stuff from the application controller, and then matching the `config/application.rb` to this:\r\n\r\nhttps://github.com/ga-dc/grumblr_rails_api/blob/5e733e8d90ff0a0eb06604d435c0da23c3e6e442/config/application.rb"}}