In Rails 3.2 the way in which form IDs were generated when using the :as option was changed (e29773f885)
The :namespace form option was also introduced in 3.2 (ad5c8b0d52)
Both of these changes were causing the client_side_validations settings object to be undefined because the form ID was different than the name that the gem was giving to the DOM window attribute which stored the settings.
I attempted to maintain backwards compatibility with Rails 3.1 to adhere to your "support two minor versions" rule. Tests are included.
Modified form helper to be consistent with how Rails now generates fo…
Added backward compatibility with Rails 3.1 for form options
Thank-you. I'm not a fan of the conditional tests but I don't think there is any way around it. Nice pull request.