The Magic of has_many associations in Rails 4