I’m creating a new PressRelease the PressRelease model has no club_id column it has columns like venue, venue_city, venue_state, etc. I wanna add a collection_select to the form to get a club_id into the params from the Club model How should my collection_select be constructed I have something like <%= f.collection_select(:club_id, Club.all, :id, :club, prompt: true) %> but this causes an undefined method ‘club_id’ error
What is the relationship between a club and a press release? Does a club have many press releases? Start with the real-world relationship, then add that relationship to your Rails models. The answer will suggest itself.