I’m trying to put together a basic blog application for fun, and I’m
using an RJS template to insert a new comment into existing comments.
The comment data is inserted, but the comment form at the bottom of the
page still contains the comment. I tried to clear out the text from the
form this way:
this isn’t doing what you think it is doing. it replaces the contents
of tags, not the values. (actually, replace_html will work on a
textarea, but will not on type=“text” input)
you are submitting the form via ajax, so therefore the page is not
being ‘reloaded’ and thus firefox or IE is not auto-filing the forms
for you at this point because you never left the page.