Forum: Ruby on Rails form reset after successful form submission

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5374b14d364988d824b3f7f5c3c6625d?d=identicon&s=25 olivier Hericord (Guest)
on 2005-12-28 23:09
(Received via mailing list)
hi,

what's the way to reset the form generated by the form_remote_tag
after the successful submission of the form?

thanks
Cee0292fffa691f1fb320d5400200e99?d=identicon&s=25 Marcel Molina Jr. (Guest)
on 2005-12-28 23:15
(Received via mailing list)
On Wed, Dec 28, 2005 at 11:09:18PM +0100, olivier Hericord wrote:
> what's the way to reset the form generated by the form_remote_tag
> after the successful submission of the form?

You typed out all the words in your email. You just have to turn it into
code
now.

form_remote_tag :url => ..., :html => {:id => 'my_form'},  :success =>
"Form.reset('my_form')"

marcel
5374b14d364988d824b3f7f5c3c6625d?d=identicon&s=25 olivier Hericord (Guest)
on 2005-12-28 23:24
(Received via mailing list)
thanks
This topic is locked and can not be replied to.