Nadeesha Meththananda 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:
www.onlamp.com/pub/a/onlamp/2005/06/09/rails_ajax.html, a tutorial that
is almost as easy to follow as it was to find.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---