bcardarella/client_side_validations — Issue #282: ClientSideValidations.formBuilders[settings.type] is undefined
Author: link-er
Created: 2012-02-21 15:16:02+00:00
State: open

Hello
I'm trying to use client_side_validations gem, but have some problems.
First, I have in my Gemfile

gem 'client_side_validations', :git => 'https://github.com/bcardarella/client_side_validations.git'

and I after bundle install I see

Using client_side_validations (3.2.0.beta.2) from https://github.com/bcardarella/client_side_validations.git (at master)

but I don't see this gem in gem list....This is first problem.
Second, and more important, validations do not work. I have an error in firebug console

ClientSideValidations.formBuilders[settings.type] is undefined

and no validations happen. I'm using rails 3.2.1, formtastic 2.0.2 and here is my client_side_validations.rb file

# ClientSideValidations Initializer

# Uncomment the following block if you want each input field to have the validation messages attached.
# ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
# unless html_tag =~ /^#{html_tag}#{instance.error_message.first}

}.html_safe
# else
# %{

#{html_tag}

}.html_safe
# end
# end

Any help will be appriciated.....