Week 3 Class Notes

when you restart the server, need to re-run "rake sample_data" open rails console "rails c" type "User.all" to see all users don't forget about associations! i.e. you already defined a user's feed and discover - can use those associations and don't need to "look up" ids in tables and search in other tables

Apr 10, 2025 - 18:10
 0
Week 3 Class Notes

when you restart the server, need to re-run "rake sample_data"

open rails console "rails c" type "User.all" to see all users

don't forget about associations! i.e. you already defined a user's feed and discover - can use those associations and don't need to "look up" ids in tables and search in other tables