CRUD with Active Record

Say you’re creating a blog. A blog has many posts, and a post belongs to a blog. I’ll use the “Post” class for these examples, however these can be substituted with any class name (capital and singular!). Create There’s essentially a couple of ways to create a new record. One way of doing it: p...
Read More