# Refresh a partial

**URL:** <https://www.ruby-forum.com/t/refresh-a-partial/103370>\
**Category:** Rails\
**Created:** [May 4, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/refresh-a-partial/103370 "2007-05-04T20:27:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@adi](https://www.ruby-forum.com/u/adi)\
**Post date:** [May 4, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/refresh-a-partial/103370/1 "2007-05-04T20:27:52Z")

</div>

I have a partial that display me some informations from database  
When i delete an entry i wan’t to refresh the partial that updates to  
page too wihtout the deleted item.  
How can i refresh a partial?

---

<div class="post-metadata">

**Author:** ![adi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@adi](https://www.ruby-forum.com/u/adi)\
**Post date:** [May 4, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/refresh-a-partial/103370/2 "2007-05-04T22:45:10Z")

</div>

Supposing you’re using an ajax call to the delete action, you’ll be  
using an RJS template with:  
page.replace\_html ‘my-div’, :partial=\>‘my\_partial’

Spiceee.

adi wrote:

> I have a partial that display me some informations from database  
> When i delete an entry i wan’t to refresh the partial that updates to  
> page too wihtout the deleted item.  
> How can i refresh a partial?
