so i needed a custom rake file for my project for testing my ui. i had never done this on my own before, so i'm going to share my experience as a beginner, so the other new guys can all understand...
我为项目创建了一个自定义的rake文件来测试ui,通过生成csv文件导入事件数据。设置任务时指定事件名称,确保rails能正确解析csv文件。循环处理每一行数据后,成功创建了14个事件,并使用faker gem生成测试用户。