1: 2: 3: 4:
# use :html to send HTML options to be included # in the form tag's HTML (class, onsubmit, ...) <% form_for @inquiry, :html => {:onsubmit=>"validate_contact_form()"} do |f| %>