1. controller setup ๋จผ์ ์ดํด๋ฅผ ์ํ ์คํค๋ง ์ฌ์ง ์ฌ์ ๋ก๋ ๐ key point ์ด๋ค ๋ชจ๋ธ์ ์ปจํธ๋กค๋ฌ๊ฐ ํ์ํ์ง ์๊ฐํด๋ณด๊ธฐ. no need to generate movie controller ์๋ํ๋ฉด ๋จผ์ movie ์ ๋ณด๋ค์ ๋ชจ๋ api๋ก ๊ฐ์ ธ์
datatypesurl:stringforiegn_keys:referencesassociationdependent: :destroyDestroying the children is ideal. You do that by setting dependent: :destroy o
This will add a hidden input field with an authenticity_token that ensures the POST request is coming from your website and not from another. ์ด๊ฒ ์ ๋ง ๋ญ๊น
disctinct ์ ๋ํด ์์๋ณด์๋ค - !