bcardarella/client_side_validations — Issue #222: validate ajax loaded forms
Author: saten
Created: 2011-11-14 14:34:26+00:00
State: open

I'm rendering forms without a layout in a rails controller, called from a jQuery *.load()*

altough *rails.validations.js* is loaded in the application global js, it does not attach its handlers to the loaded form

Including esplicitly *rails.validations.js* in the form view works fine for attaching, but it does not initialize the *settings* variable properly

*var settings = window[form.attr('id')];*

The brutal fix is to include that snippet again before any code is run when an event occurs (focusout, change etc)