I have no idea if calling system() from within an ERb template should work
or not, it seems like a pretty wild idea
I would try making a controller action that the form submits to, and have
the controller make the system call with the data. I haven't tested that but
I would give it a try if possible.