我从数据库中获取一些结果:
@log_detail = connection.execute("SELECT logs,setup FROM mastertest WHERE test_ins_id LIKE blah blah blah");
结果
logs = a/atf/something
setup = tb-1-atf with ac-2115
我想要
logs = atf/something
setup = 2115
我尝试了以下日志,但它似乎无法正常工作
@log_detail.each do |row|
row[0] = row[0].drop(2)
end