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  · 12 min · 2363 words

Ruby Hash Key Types Vary Depending on Hash Syntax

Key types in Ruby hashes depend on hash syntax.

 · Updated  · 3 min · 619 words

Sorting Hashes in Ruby

Many ways of sorting hashes in Ruby.

 · Updated  · 2 min · 324 words

Iterating Through Hashes in Ruby

Several methods of iterating through Ruby hashes.

 · Updated  · 3 min · 456 words

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

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

 · Updated  · 1 min · 46 words

Useful Constants in Ruby's Date Class

Diving into useful constants in Ruby’s Date class