In much the same way that letting attackers control the parameters to fork() would be a bad idea for a C program or letting attackers control the parameters to Runtime.exec() would be a bad idea for a Java program.
This is a Rails vulnerability, not a Ruby vulnerability.
This is a Rails vulnerability, not a Ruby vulnerability.