bcardarella/client_side_validations — pull request #405 by ares (2012-10-10 13:01:50+00:00)
Title: Fix for forms using :index option

If you use something like
```ruby
objects.all do |object|
f.fields_for object, :index => object.id do |fld|
end
```
validators names are generated wrongly because they ignore index argument (lib/client_side_validations/action_view/form_builder.rb #build_validation_options) and they are not found when field is validated.

This patch checks whether index is present in @default_options (see docs for FormBuilder http://apidock.com/rails/v3.2.8/ActionView/Helpers/FormBuilder/new/class) and if it is, it's injected between @object_name and method.