{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/3","labels_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/3/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/3/events","html_url":"https://github.com/ga-wdi-boston/rails-project-full-stack-app/issues/3","id":116116062,"number":3,"title":"I can authenticate a user, yet cannot post a new bike to my database","user":{"login":"resource11","id":11621935,"avatar_url":"https://avatars.githubusercontent.com/u/11621935?v=3","gravatar_id":"","url":"https://api.github.com/users/resource11","html_url":"https://github.com/resource11","followers_url":"https://api.github.com/users/resource11/followers","following_url":"https://api.github.com/users/resource11/following{/other_user}","gists_url":"https://api.github.com/users/resource11/gists{/gist_id}","starred_url":"https://api.github.com/users/resource11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resource11/subscriptions","organizations_url":"https://api.github.com/users/resource11/orgs","repos_url":"https://api.github.com/users/resource11/repos","events_url":"https://api.github.com/users/resource11/events{/privacy}","received_events_url":"https://api.github.com/users/resource11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-10T14:20:00Z","updated_at":"2015-11-10T14:44:24Z","closed_at":null,"body":"So... I can successfully register and login a user through the backend *and* the frontend through AJAX requests. I can successfully do GET requests to the backend and receive data to use in my frontend (i.e.,  populate a div with data collected from the backend).\r\n\r\nI can successfully create a new bike from the backend using pry and using Postman using authentication. \r\n\r\nHowever. I cannot successfully create a *new* bike POST from the front end. \r\n\r\nThe error message I am receiving when I attempt to do an ajax POST request is:\r\n\r\nPOST http://localhost:3000/bikes \r\nlocalhost/:1 XMLHttpRequest cannot load http://localhost:3000/bikes. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access. The response had HTTP status code 500.\r\n\r\nsee attached image\r\n\r\n<img width=\"1134\" alt=\"screen shot 2015-11-10 at 9 07 11 am\" src=\"https://cloud.githubusercontent.com/assets/11621935/11064327/90683c4a-878a-11e5-8641-8436c9b4100c.png\">\r\n\r\nI have googled, I have asked classmates, I've looked at my Rails backend to see if there's an issue.  I'm not sure if my bikes_controller.rb file is not set up correctly for creating a new bike. "},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/comments/155438485","html_url":"https://github.com/ga-wdi-boston/rails-project-full-stack-app/issues/3#issuecomment-155438485","issue_url":"https://api.github.com/repos/ga-wdi-boston/rails-project-full-stack-app/issues/3","id":155438485,"user":{"login":"resource11","id":11621935,"avatar_url":"https://avatars.githubusercontent.com/u/11621935?v=3","gravatar_id":"","url":"https://api.github.com/users/resource11","html_url":"https://github.com/resource11","followers_url":"https://api.github.com/users/resource11/followers","following_url":"https://api.github.com/users/resource11/following{/other_user}","gists_url":"https://api.github.com/users/resource11/gists{/gist_id}","starred_url":"https://api.github.com/users/resource11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resource11/subscriptions","organizations_url":"https://api.github.com/users/resource11/orgs","repos_url":"https://api.github.com/users/resource11/repos","events_url":"https://api.github.com/users/resource11/events{/privacy}","received_events_url":"https://api.github.com/users/resource11/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T14:44:24Z","updated_at":"2015-11-10T14:44:24Z","body":"<img width=\"1420\" alt=\"screen shot 2015-11-10 at 9 43 23 am\" src=\"https://cloud.githubusercontent.com/assets/11621935/11065135/9dda2910-878f-11e5-9eaa-233825a67e58.png\">\r\n"}}