After about five years of writing Ruby in a Rails environment, I still occasionally come across useful features of ActiveSupport that I didn't know existed. I'll post them here.
Today's fun feature is the
#index_by method ActiveSupport puts on Enumerable (collections, like Array). Let's say you ... (more)