Forum: Ruby on Rails Refresh a list

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.
Shandy N. (Guest)
on 2007-07-03 22:54
I now have things being deleted dynamically from a list. The problem now
is that when I add something to that list it hits the database getting
all the correct users and the things associated with those users.
However, some of the items are duplicated because the list is not being
cleared when something is added and the new list generated. Is there a
way to clear everything that is in a div with an id so I can re-populate
that div with new information?
Shandy N. (Guest)
on 2007-07-05 18:31
I figured it out. In the remote_form_tag that I was using I had the
option for :position =>'bottom'. I left that out and the form and
everything displayed correctly without any duplicated information.
This topic is locked and can not be replied to.