The last difficulty and the working export to the files for ruby