
Syncing Repositories with Ruby Scripts - Part 2
About this episode
In this lesson, we will pick up where we left off in the last part and package up our script into a gem that we can share. Along the way, we'll look at how we can spread responsibility across a few small classes to separate concerns and hopefully make the
More from GoRails Screencasts
Configuring servers can be tricky, but it's much easier using drop-in configs so you're not editing files that could change across versions or environments.
The Whenever gem is fantastic for defining cron jobs. With a little customization, we can have it monitor cron jobs and report logs, and status to services like AppSignal.
Learn how to order records by a column with a set of values
Learn how to use Rails' with_options to DRY up duplicated options across method calls and associations, including how to nest them for shared defaults.
Learn how to normalize all ActiveRecord attributes with a quick peak at the Rails source code.