by g on Aug 08, 2017
Last month I noticed the lack of a good ActiveRecord tutorial/screencast that goes from basic to advanced usage (with examples). So, I decided to put together a presentation on ActiveRecord for the Orlando Ruby Users Group.
UPDATE If you already know the basics (belongs to, has many), I then you might want to check out Advanced ActiveRecord, an Envycast us put together.
Otherwise the video below should get you started. You can download all the example code
The video covers these topics:
- Who invented ActiveRecord and why
- How to use ActiveRecord
- Basic model to table mapping
- has_many relationships
- Magical counter fields
- Many to many relationships
- has_many => through
- Polymorphic relationships
If you have a few minutes over lunch please take a look, and let me know if you have any questions/comments.
Sorry, comments are closed for this Post, but feel free to email us with your input. We'd love to hear it.