Refactor using form_tag