title: How can I get ActiveAdmin to perform input validation on it's forms on the client side?
body: <p>I have a form for creating a new resource in ActiveAdmin. Two of my fields are integers (peak_count and off_peak_count). </p>
  
  <p>If I  enter a string in those fields, I will receive a stack trace of a database error because the entered fields are of the wrong type. How can I get ActiveAdmin to enforce the input types of the fields on the client side before attempting to input the data into the db? </p>
  
  <p>Here is my form:</p>
  
  <pre><code>form do |f|
      f.inputs do
        if f.object.new_record?
          f.input :name
        else
          f.input :id, :input_html =&gt; {:disabled =&gt; true}
          f.input :name, :input_html =&gt; {:disabled =&gt; true}
        end
        f.input :peak_count
        f.input :off_peak_count
      end
      f.actions
    end
  </code></pre>