我了解如何在 rails 控制台中运行一段简单的代码。说
Swimming::Student.create(:name="Jerry")
如何运行一大段代码(多行)
Swimming::Student.all.each{ |student|
student.attended = flase
student.save
}
我了解如何在 rails 控制台中运行一段简单的代码。说
Swimming::Student.create(:name="Jerry")
如何运行一大段代码(多行)
Swimming::Student.all.each{ |student|
student.attended = flase
student.save
}