fields_for incorrectly assumed that *args would not be nil
Fix for checkboxes immediately unchecking when validated
issue when HTML parsers would try and validate or test on the HTML tags inside the Javascript, added CDATA tags to stop this.
fixing bad and of string
adding tests
removing commented out junk
Fix validateElement to return validation result.
Enabled if and unless specification

You can specify :if or :unless (not both!) using a string, symbol
or even Proc. Seems to work for me.

Also fixed one problem in existing tests. title_changed? and
cost_changed? are not defined automatically so they must
be stubbed.

I also added tests for new functionality. It's tested only
for present validators same as other existing tests.
Merge pull request #302 from ares/239-validates_with_if_and_unless-rebased

Enabled if and unless specification
Proper indenting and removed unnecessary 'then' for 'when' in case statements
support for nested attributes with dynamic number of elements
Merge pull request #300 from onomojo/master

Fixing bad AREL
The Ruby 1.9 hash syntax is fucking shit
Merge pull request #316 from stuartc/cdata_tags

issue when HTML parsers would try and validate or test on the HTML tags
Merge pull request #213 from pkmiec/nested_attributes

support for nested attributes with dynamic number of elements
Changed string passed to element.closest() when removing errors so elements with multiple classes can have error markup removed.
Merge pull request #326 from kgautreaux/patch-2

Changed string passed to element.closest() when removing errors so that
Merge pull request #265 from bdmac/master

Checkbox acceptance validation causes checkbox to uncheck immediately
Now the numericality validation can use a custom pattern.
rake regenerate_javascript