title: Rails 3 form validations without a model
body: <p>I've created a contact form using form_tag and other simple non-model-related rails form helpers. The form just submits an email to the site administrator. Anyway, I'd like to validate the fields on the form, but I'm having trouble finding a Rails-friendly way of doing this.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/3563087/rails-validation-without-model">this answer</a> to what seems to be the same question, however the accepted answer didn't seem to present a clear solution for Rails 3 (it seemed more oriented toward Rails 2). Could someone provide a concise example of how to easily do client-side validation of a form not related to a model in Rails 3? Extra points for a strategy that utilizes the default Rails validators. </p>
  
  <p>And let's pretend my form looks something like this:</p>
  
  <pre><code>&lt;%= form_tag "/contact" do %&gt;
    &lt;%= text_field_tag :name %&gt;
    &lt;%= text_field_tag :email %&gt;
    &lt;%= text_area_tag :message %&gt;
    &lt;%= submit_tag "Submit" %&gt;
  &lt;% end %&gt;
  </code></pre>