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

Use “dependent: :nullify” to prevent child objects from getting deleted.

Ruby Arrays Cheatsheet

Ruby array basics and methods to learn fast or refresh your memory.

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

Key types in Ruby hashes depend on hash syntax.

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

Many ways of sorting hashes in Ruby.

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

Several methods of iterating through Ruby hashes.

2022-11-17 · 550 words
Set a Default Ruby Version with Ruby Version Manager (RVM)

How to recursively ignore files when building Docker images.

2022-11-06 · 50 words
Useful Constants in Ruby's Date Class

Diving into useful constants in Ruby’s Date class