Changed code to use form_tag.