# Persistance connection with database

**URL:** <https://www.ruby-forum.com/t/persistance-connection-with-database/194698>\
**Category:** Rails\
**Created:** [September 9, 2010, 8:57am UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698 "2010-09-09T08:57:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dharmdip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Post date:** [September 9, 2010, 8:57am UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698/1 "2010-09-09T08:57:03Z")

</div>

Hey , is there any easy way to check for new values in database and show  
update value on view without refreshing page ?

---

<div class="post-metadata">

**Author:** ![dharmdip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Post date:** [September 9, 2010, 9:50am UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698/2 "2010-09-09T09:50:39Z")

</div>

On Sep 9, 7:57 am, Dharmdip R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hey , is there any easy way to check for new values in database and show  
> update value on view without refreshing page ?

You should do some reading about AJAX.

Fred

---

<div class="post-metadata">

**Author:** ![dharmdip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Post date:** [September 9, 2010, 1:37pm UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698/3 "2010-09-09T13:37:48Z")

</div>

> **[\#43 AJAX with RJS - RailsCasts](http://railscasts.com/episodes/43-ajax-with-rjs)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

and a more recent and proper way is this

> **[\#136 jQuery - RailsCasts](http://railscasts.com/episodes/136-jquery)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

On Thu, Sep 9, 2010 at 3:47 AM, Frederick C.  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![dharmdip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Post date:** [September 13, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698/4 "2010-09-13T12:35:14Z")

</div>

radhames brito wrote:

> [#43 AJAX with RJS - RailsCasts](http://railscasts.com/episodes/43-ajax-with-rjs)
> 
> and a more recent and proper way is this
> 
> [#136 jQuery - RailsCasts](http://railscasts.com/episodes/136-jquery)
> 
> On Thu, Sep 9, 2010 at 3:47 AM, Frederick C.  
> \<removed\_email\_address@domain.invalid

Thanks !

---

<div class="post-metadata">

**Author:** ![dharmdip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Post date:** [September 13, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698/5 "2010-09-13T12:34:47Z")

</div>

Frederick C. wrote:

> On Sep 9, 7:57ï¿½am, Dharmdip R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hey , is there any easy way to check for new values in database and show  
> > update value on view without refreshing page ?
> 
> You should do some reading about AJAX.
> 
> Fred

Thanks Fred…

---

<div class="post-metadata">

**Author:** ![dharmdip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Post date:** [September 13, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698/6 "2010-09-13T14:47:54Z")

</div>

> **[\#229 Polling for Changes - RailsCasts](http://railscasts.com/episodes/229-polling-for-changes)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.
