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 ·  · 13 min · 2715 words
Ruby Hash Key Types Vary Depending on Hash Syntax

Key types in Ruby hashes depend on hash syntax.

2023-01-06 ·  · 4 min · 691 words
Sorting Hashes in Ruby

Many ways of sorting hashes in Ruby.

2022-12-04 ·  · 2 min · 383 words
Iterating Through Hashes in Ruby

Several methods of iterating through Ruby hashes.

2022-11-17 ·  · 3 min · 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 ·  · 1 min · 50 words
Useful Constants in Ruby's Date Class

Diving into useful constants in Ruby’s Date class