use slice to avoid range allocation
each_with_object on the view_assigns hash