php in ruby on rails project

The button is not PHP, it is HTML, why not change the receiving action to be ruby? Storing an email address in DB and send an email is a trivial task…