{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/191","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/191/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/191/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/191/events","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/191","id":137668509,"number":191,"title":"How to complete a Post request for multiple tables.","user":{"login":"ajordon","id":6088950,"avatar_url":"https://avatars.githubusercontent.com/u/6088950?v=3","gravatar_id":"","url":"https://api.github.com/users/ajordon","html_url":"https://github.com/ajordon","followers_url":"https://api.github.com/users/ajordon/followers","following_url":"https://api.github.com/users/ajordon/following{/other_user}","gists_url":"https://api.github.com/users/ajordon/gists{/gist_id}","starred_url":"https://api.github.com/users/ajordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajordon/subscriptions","organizations_url":"https://api.github.com/users/ajordon/orgs","repos_url":"https://api.github.com/users/ajordon/repos","events_url":"https://api.github.com/users/ajordon/events{/privacy}","received_events_url":"https://api.github.com/users/ajordon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-01T19:48:22Z","updated_at":"2016-03-01T22:09:39Z","closed_at":null,"body":"My ERD:\r\n![image](https://cloud.githubusercontent.com/assets/6088950/13439581/2c30ba60-dfbc-11e5-83d2-7c61d8cf91a2.png)\r\n\r\n\r\nWhen a new poll is created, my modal takes the ```question``` and  two ```options ```. Do I need two ajax posts for this or can I combine into one?\r\n\r\nSchema:\r\n```\r\ncreate_table \"options\", force: :cascade do |t|\r\n    t.text     \"response\"\r\n    t.integer  \"poll_id\"\r\n    t.datetime \"created_at\", null: false\r\n    t.datetime \"updated_at\", null: false\r\n  end\r\n\r\ncreate_table \"polls\", force: :cascade do |t|\r\n    t.text     \"question\"\r\n    t.date     \"date_closed\"\r\n    t.datetime \"created_at\",  null: false\r\n    t.datetime \"updated_at\",  null: false\r\n    t.integer  \"created_by\"\r\n  end\r\n```"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/comments/190928581","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/191#issuecomment-190928581","issue_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/191","id":190928581,"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-03-01T22:09:39Z","updated_at":"2016-03-01T22:09:39Z","body":"ok, just wanted clarification, looks like @gaand offered a 1-on-1"}}