On-the-floor

On the Floor

TIL: Integer#times yields a counter that starts at zero and goes to Integer - 1

0. upto(my_string. length - 1) do |pos| char = my_string[pos] . Read more...

TIL: A better way of figuring out rails model attributes

 I find it annoying looking through schema. db when I can't remember the name of an attribute on a rails model.  It seems so. Read more...

TIL: Using .include in an AREL chain invalidates :default_scope

. . . Read more...