Displaying 1 result from an estimated 1 matches for "div_with_the_form_to_be_updated".
2010 Apr 30
0
Rails 3's rails.js should offer Ajax.Updater
...oller, which will do... what? Try to
puzzle the form values and error messages into the invalid form?
Instead, I came up with this spontaneous extension to rails.js:
http://gist.github.com/385167
With something as easy as
form_tag ... :html => { ''data-update'' =>
''div_with_the_form_to_be_updated'' }
I can now have the controller render HTML to update the form when it
has errors, and still RJS if I would like to do some fancy stuff in
case the submission was successful.
I assume this feature should be included in rails.js. It would take
just a few lines of smart modification.
In...