Learn two ways to avoid switching on nil in Rails apps, in this double feature from RubyTapas and Upcase
When refactoring Ruby code, getting a fresh perspective on the data model can help drive out a cleaner design.
Global settings can cause havoc when threads are introduced. Learn when and how to use Ruby's thread-local variables instead.
In which we confront a mythological creature lurking in our code.
In today's special guest episode, Tom Stuart shows us the benefits of using enumerators as immutable collections.
In today's episode we explore methods for unindenting text. Along the way, we'll learn some tricks and play some code golf.
Today we look at the humble String#gsub method, and learn that it has some surprising tricks up its sleeve.
ActiveRecord has become practically synonymous with SQL database access in Ruby, but it's not the only way to talk to SQL stores. Today we'll explore Sequel, a wonderfully rich tool …