Skip to content
bcardarella edited this page Apr 11, 2011 · 14 revisions

ClientSideValidations supports Formtastic.

Example:

<%= semantic_form_for @book, :validate => true do |book| -$>

Turn off validation per input

If you want to turn off the validation for a particular input you have to use the :input_html syntax for Formtastic:

= semantic_form_for @user, :validate => true do |user|
  = user.input :email
  = user.input :username, :input_html { :validate => false }