Ruby Snack #26 ActiveRecord Methods: includes and joins

preview_player
Показать описание
Confused about when to use includes vs joins when making ActiveRecord calls? In this episode, I break it down and show a few examples.

Рекомендации по теме
Комментарии
Автор

I only just now stumbled upon this video, and my reaction is PLEASE DO MORE OF THESE! :D

rafaklimek
Автор

I've been struggling on an app for a week. This is the first time I heard anyone explain this and it's like a light bulb went off. Lol.

Well done! thank you.

limited-infinity
Автор

Thanks for all the videos! Please continue doing more tutorials <3

richardchan
Автор

Thanks for your effort.... your Ruby_Snack tutorials are good :)

jakariablaine
Автор

I did an includes request to fetch certain data. Now on this data if I were to set some attributes to some new values (based on some conditions) I end up auto firing an update to the db. Is this the expected behaviour? Should I be setting the attributes on a different instance and use only getters on the data fetched via the includes? Please do help

ananthakrishnankrishnan
join shbcf.ru