# Need help regarding Ajax and REST

**URL:** <https://www.ruby-forum.com/t/need-help-regarding-ajax-and-rest/181456>\
**Category:** Rails\
**Created:** [January 12, 2010, 10:20am UTC](https://www.ruby-forum.com/t/need-help-regarding-ajax-and-rest/181456 "2010-01-12T10:20:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajaramyadhav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8baadc/32.png) [@rajaramyadhav](https://www.ruby-forum.com/u/rajaramyadhav)\
**Post date:** [January 12, 2010, 10:20am UTC](https://www.ruby-forum.com/t/need-help-regarding-ajax-and-rest/181456/1 "2010-01-12T10:20:37Z")

</div>

Hi all,

I am a newbie to Ruby on Rails. I need some help from you guys. I need  
to create a page with Ajax stuff. Now for this should the methods in  
controllers be non-REST type? I went through the “Agile Web  
Development with Rails” and in the cart example that they have given,  
they have used that particular controller(StoreController.rb) that  
uses Ajax stuff to be non-REST ful(all other controllers are scaffold  
generated). My question is that do Ajax and REST go hand-in-hand or  
should when I want to use Ajax stuff, should I create a non-REST  
method. Your help is appreciated. I am a newbie to Rails. So the way  
I am expressing things may not be meaningful. Kindly bare with me.

Thanks,  
Raja
