bcardarella/client_side_validations — pull request #421 by taavo (2012-10-28 18:36:51+00:00)
Title: Find validators for nested_form fields

I'm working on integrating client_side_validations with nested_form on a new project, and the first issue I can't work around is that the method which looks up the validators for a nested field, validatorsFor, assumes all nested fields have numeric indexes, like this: `post[comments][3][text]`, but nested_form uses alphanumeric indexes, like this: `post[comments][new_12345][text]`. This pull request tests for this specific scenario and fixes it.

I've got another issue I'm working on (FormBuilder#validate doesn't seem to work for nested attributes in a nested_form context), but I'll make a ticket for that when I at least understand what's happening.