This series covers some of the often misunderstood Rails basics. Things like params, environment variables, and other topics are glossed over assuming you understand them but we'll dive into them in detail and explain how they work so you can have a much more deep understanding of Ruby on Rails.
Serializing Attributes with Custom Coders
In part one of this episode on leveraging ActiveSupport::Duration, we look at how to provide a solution to calculating and updating model attributes that represent lengths of time. We look at ActiveSupport::Duration and how we can write a custom coder cla
ActiveSupport Concerns: Making A Duration Calculation Module
#479 · Pro
This episode is part 2 in a series about leveraging ActiveSupport::Duration. In this episode, we will look at how to build a reusable concern to setup relationships between models that allow them to automatically handle calculating and updating durations