profile
Hello all ๐Ÿ‘‹๐Ÿป ๐Ÿ“London

rails - watch list day2

1. controller setup ๋จผ์ € ์ดํ•ด๋ฅผ ์œ„ํ•œ ์Šคํ‚ค๋งˆ ์‚ฌ์ง„ ์žฌ์—…๋กœ๋“œ ๐Ÿ key point ์–ด๋–ค ๋ชจ๋ธ์˜ ์ปจํŠธ๋กค๋Ÿฌ๊ฐ€ ํ•„์š”ํ•œ์ง€ ์ƒ๊ฐํ•ด๋ณด๊ธฐ. no need to generate movie controller ์™œ๋ƒํ•˜๋ฉด ๋จผ์ € movie ์ •๋ณด๋“ค์„ ๋ชจ๋‘ api๋กœ ๊ฐ€์ ธ์™€

2022๋…„ 3์›” 24์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

rails watch list - day1

datatypesurl:stringforiegn_keys:referencesassociationdependent: :destroyDestroying the children is ideal. You do that by setting dependent: :destroy o

2022๋…„ 3์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

hidden_field_tag

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. ์ด๊ฒŒ ์ •๋ง ๋ญ˜๊นŒ

2022๋…„ 1์›” 14์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

rails - active record : distinct

disctinct ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์•˜๋‹ค - !

2021๋…„ 11์›” 26์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€