AJAX with Ruby

hi all

i want to integrate AjAX to my ROR project. i have familiar using AJAX
in normal HTML and PHP. but i could not found a way to use it in ROR. bz
of MVC concept.(hard to call the controls and to models as wanted.)

so any body have some examples on simple AXAY using in ROR pls reply

Thanks

Nadeesha M. wrote:

hi all

i want to integrate AjAX to my ROR project. i have familiar using AJAX
in normal HTML and PHP. but i could not found a way to use it in ROR. bz
of MVC concept.(hard to call the controls and to models as wanted.)

so any body have some examples on simple AXAY using in ROR pls reply

Thanks

There are a lot of helpers built into ruby on rails to get you rolling.
Start at the API (http://api.rubyonrails.com/), and look into
form_remote_tag and link_to_remote. You can also search the web for
“RJS and Rails”.

You can, if you would rather, add your own javascript into the project
by adding to public/javascripts/application.js or your own .js file.
You can always add inline javascript in your views.

If that doesn’t work, you could just use a search engine and look for
“Ruby on Rails and Ajax”, there is a ton of information out there. I
was feeling lucky and got sent here:
Radar – O’Reilly, a tutorial that
is almost as easy to follow as it was to find.