{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/236","repository_url":"https://api.github.com/repos/ga-wdi-exercises/project4","labels_url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/236/comments","events_url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/236/events","html_url":"https://github.com/ga-wdi-exercises/project4/issues/236","id":169832607,"number":236,"title":"Joined table","user":{"login":"kristinmaripasive","id":19437889,"avatar_url":"https://avatars.githubusercontent.com/u/19437889?v=3","gravatar_id":"","url":"https://api.github.com/users/kristinmaripasive","html_url":"https://github.com/kristinmaripasive","followers_url":"https://api.github.com/users/kristinmaripasive/followers","following_url":"https://api.github.com/users/kristinmaripasive/following{/other_user}","gists_url":"https://api.github.com/users/kristinmaripasive/gists{/gist_id}","starred_url":"https://api.github.com/users/kristinmaripasive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristinmaripasive/subscriptions","organizations_url":"https://api.github.com/users/kristinmaripasive/orgs","repos_url":"https://api.github.com/users/kristinmaripasive/repos","events_url":"https://api.github.com/users/kristinmaripasive/events{/privacy}","received_events_url":"https://api.github.com/users/kristinmaripasive/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ga-wdi-exercises/project4/labels/waiting-on-student-response","name":"waiting-on-student-response","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-08T02:31:45Z","updated_at":"2016-08-08T14:43:08Z","closed_at":null,"body":"I have three models set up: Artists, Musicians, Collabs. I want my artists and musicians to have a many-to-many relationship with collabs as their joined table. I'm testing out my seed data, but it seems like my collabs aren't showing up when my collab.rb file is this:\r\n```\r\nclass Collab < ApplicationRecord\r\n  belongs_to :artist\r\n  belongs_to :musician\r\nend\r\n```\r\n\r\nIt only shows up on the browser when I don't put anything in there. I'm assuming it's because the collabs table is now dependent on the artists & musicians? I'm quite confused. How can I make it in a way that it still shows up on the browser when I go to localhost:3000/collabs, but having it as a joined table?"},"comment":{"url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/comments/238259479","html_url":"https://github.com/ga-wdi-exercises/project4/issues/236#issuecomment-238259479","issue_url":"https://api.github.com/repos/ga-wdi-exercises/project4/issues/236","id":238259479,"user":{"login":"kristinmaripasive","id":19437889,"avatar_url":"https://avatars.githubusercontent.com/u/19437889?v=3","gravatar_id":"","url":"https://api.github.com/users/kristinmaripasive","html_url":"https://github.com/kristinmaripasive","followers_url":"https://api.github.com/users/kristinmaripasive/followers","following_url":"https://api.github.com/users/kristinmaripasive/following{/other_user}","gists_url":"https://api.github.com/users/kristinmaripasive/gists{/gist_id}","starred_url":"https://api.github.com/users/kristinmaripasive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristinmaripasive/subscriptions","organizations_url":"https://api.github.com/users/kristinmaripasive/orgs","repos_url":"https://api.github.com/users/kristinmaripasive/repos","events_url":"https://api.github.com/users/kristinmaripasive/events{/privacy}","received_events_url":"https://api.github.com/users/kristinmaripasive/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T14:43:08Z","updated_at":"2016-08-08T14:43:08Z","body":"ohhh, it's showing up now... but I had to hardcode an artist_id and musician_id in there. \r\n```\r\ncloud = Collab.create({title: 'The Cloud', description: \"This was created for Ben's new album. Jessica created this piece with illustrator.\", photo_url: '', artist_id: '1', musician_id: '1'})\r\n```\r\nSo my question would be, when creating a collab, how would I enter a specific artist and musician if I don't know their IDs in the database?  "}}
{"actor":{"display_login":"kristinmaripasive"}}