Need help regarding Ajax and REST

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.