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.

 · Updated  · 7 min · 1362 words

Ruby Hash Key Types Vary Depending on Hash Syntax

Key types in Ruby hashes depend on hash syntax.

 · Updated  · 3 min · 444 words

Sorting Hashes in Ruby

Many ways of sorting hashes in Ruby.

 · Updated  · 1 min · 199 words

Iterating Through Hashes in Ruby

Several methods of iterating through Ruby hashes.

 · Updated  · 2 min · 309 words

Set a Default Ruby Version with Ruby Version Manager (RVM)

Set a default Ruby version using RVM with rvm --default use <version number>

 · Updated  · 1 min · 41 words

Useful Constants in Ruby's Date Class

Diving into useful constants in Ruby’s Date class