# RESTful controller ajax update

**URL:** <https://www.ruby-forum.com/t/restful-controller-ajax-update/147557>\
**Category:** Rails\
**Created:** [September 3, 2008, 5:08am UTC](https://www.ruby-forum.com/t/restful-controller-ajax-update/147557 "2008-09-03T05:08:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [September 3, 2008, 5:08am UTC](https://www.ruby-forum.com/t/restful-controller-ajax-update/147557/1 "2008-09-03T05:08:46Z")

</div>

Hello,

I’m trying to keep as restful as possible and have ran into a snag. Let  
me set up the scenario:

I have two different types of AJAX requests to update my Chore model.  
Depending on which ajax action is making the call, i want to return a  
particular partial rendered in JSON format so i can update the proper  
markup accordingly.

Thanks for any suggestions!  
Adam
