changed html form to rails form