# Ajax update attribute

**URL:** <https://www.ruby-forum.com/t/ajax-update-attribute/144774>\
**Category:** Rails\
**Created:** [August 1, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/ajax-update-attribute/144774 "2008-08-01T23:12:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jturney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jturney](https://www.ruby-forum.com/u/jturney)\
**Post date:** [August 1, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/ajax-update-attribute/144774/1 "2008-08-01T23:12:37Z")

</div>

in controller (that gets called by a link\_to\_remote)

session.model.update\_attribute(:viewing, “blah”)

It doesn’t seem to update, any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![jturney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jturney](https://www.ruby-forum.com/u/jturney)\
**Post date:** [August 4, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/ajax-update-attribute/144774/2 "2008-08-04T21:26:59Z")

</div>

Justin To wrote:

> in controller (that gets called by a link\_to\_remote)
> 
> session.model.update\_attribute(:viewing, “blah”)
> 
> It doesn’t seem to update, any ideas?
> 
> Thanks!

Have you checked your log file to see what it says? Your log file is  
your best friend and it should give some hint at what’s going on behind  
the scenes.
