I must be stoopid:
:6:in `[]=': cannot convert String into Integer (TypeError)