Notes and tips for Ruby
Data types
Enums are interesting and interact with databases in odd ways.
- https://naturaily.com/blog/ruby-on-rails-enum
- https://stackoverflow.com/questions/23686265/saving-enum-from-select-in-rails-4-1
- https://www.justinweiss.com/articles/creating-easy-readable-attributes-with-activerecord-enums/
- http://www.railsonmaui.com/blog/2014/10/22/enums-and-queries-in-rails-4-dot-1/
Syntax
Learning about the percentage notation which provides shorthand for creating data sets.
Learn the difference between #each and #map along with other helpful array methods