Preserve Child Objects When Parent Objects Are Deleted in Ruby on Rails

Use dependent: :nullify in Rails associations to preserve child records when parent objects are deleted.

Ruby Arrays Cheatsheet

A Ruby arrays cheatsheet with methods and examples for coding interviews.

2024-04-10 · [Updated 2025-10-29] · 2715 words
Ruby Hash Key Types Vary Depending on Hash Syntax

Key types in Ruby hashes depend on hash syntax.

2023-01-06 · [Updated 2025-08-14] · 691 words
Sorting Hashes in Ruby

Many ways of sorting hashes in Ruby.

2022-12-04 · [Updated 2025-08-14] · 383 words
Iterating Through Hashes in Ruby

Several methods of iterating through Ruby hashes.

2022-11-17 · [Updated 2025-08-14] · 550 words
Set a Default Ruby Version with Ruby Version Manager (RVM)

Set a default Ruby version using RVM with rvm –default use

2022-11-06 · [Updated 2025-10-29] · 50 words
Useful Constants in Ruby's Date Class

Diving into useful constants in Ruby’s Date class