I'm trying to use the form_for reset button:
<%= button_tag 'Reset', :type => 'reset' %>
It works great, but when I update the object through AJAX, how can I get the new form values to be the ones reset to? Right now it resets to the values when the document loads, which makes sense. But is there a way to get the reset button to register the new values?
Here's the code: https://gist.github.com/3006966
Hopefully, there's a simpler way than looping through the form fields and setting their default values: How can I update a default value for a form field after an ajax submission (not a form reset)
Thank you for your time!