Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 601 Bytes

File metadata and controls

32 lines (18 loc) · 601 Bytes

Nested Forms

  1. Model ✅ Parent model needs to be taught how to accept information about child model

  2. Form ✅ Needs to be updated with a nested form

  3. Controller (part a) Action needs to be updated to generate empty object for nested form to wrap around

  4. Controller (part b) White list information

... and the difference from a nested resource :new

  • Include nested resource show or index (URL e.g. users/2/recipes) users artists songs genres

artists/:artist_id/songs/

  • Include nested resource "new" form (URL e.g. recipes/1/ingredients/new) artists/:artist_id/songs/new