# AJAX Support and Rails

**URL:** <https://www.ruby-forum.com/t/ajax-support-and-rails/66040>\
**Category:** Rails\
**Created:** [August 22, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040 "2006-08-22T23:23:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 22, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/1 "2006-08-22T23:23:56Z")

</div>

Hello there,

This is my first post to the Ruby group. I am also new to the language  
and the Rails framework, it is an amazing place to be now. Coming from  
a PHP/ASP background I am glad something like Rails finally made it  
into web development.

Now to my question. I have been readying a lot about AJAX, and I  
wondered what kind of support is built-in into Rails for it. I read  
somewhere that Prototype or even Scriptaculous was somehow embedded  
into the Framework.

Could anyone elaborate on this? How do we use AJAX in a regular web  
application with Rails, where does the code go, and what is available?

Thanks a lot guys… any advice would be most welcome.

Best Regards,

Jose L. Hurtado  
Web D. / IT Professional  
Toronto, Canada

---

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 23, 2006, 12:04am UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/2 "2006-08-23T00:04:01Z")

</div>

Hi Jose,

check this out:  
[http://api.rubyonrails.com/classes/ActionView/Helpers/ScriptaculousHelper.html](http://api.rubyonrails.com/classes/ActionView/Helpers/ScriptaculousHelper.html)  
[http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper.html](http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper.html)

–  
Yan

> **[skwpspace](https://skwp.wordpress.com/)**
>
> musings on software, food, and life, by Yan Pritzker

[http://planyp.us](http://planyp.us)

On Tue, 22 Aug 2006 16:05:15 -0500, Jose-Luis [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> somewhere that Prototype or even Scriptaculous was somehow embedded  
> Web D. / IT Professional  
> Toronto, Canada
> 
> >

–  
Using Opera’s revolutionary e-mail client: [http://www.opera.com/m2/](http://www.opera.com/m2/)

---

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 23, 2006, 2:02am UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/3 "2006-08-23T02:02:14Z")

</div>

This is where most people get started. Well where I did.

> **[Radar - O’Reilly](https://www.oreilly.com/radar/)**
>
> Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

Brad.  
[http://www.pcast.com](http://www.pcast.com)

---

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 23, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/4 "2006-08-23T16:35:40Z")

</div>

Brad,

Thanks for the link, it is a very good tutorial, I just started  
following it through.

It’s nice to see most of what we need is already built in!

Best Regards,

Jose L. Hurtado  
Web D. / IT Professional  
Toronto, Canada

---

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 23, 2006, 4:41pm UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/5 "2006-08-23T16:41:44Z")

</div>

Yan,

Thanks for the links! I will check them out.

Best Regards,

Jose L. Hurtado  
Web D. / IT Professional  
Toronto, Canada

---

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 23, 2006, 5:09pm UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/6 "2006-08-23T17:09:45Z")

</div>

Just a note:

Scriptaculous is not Ajax, it’s just effects on DOM elements.

Prototype is the Ajax library.

Scriptaculous gives the effects that have come to be recognized as  
‘Ajax’  
(fade, blind, etc).

Jason

---

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 23, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/7 "2006-08-23T16:45:44Z")

</div>

Jan,

I forgot to mention, I was already looking at Scriptaculous, it is a  
very cool AJAX framework, and Ruby’s support for it is another reason  
to use it.

By the way, the folks at Gucci used it to achieve a Flash-like AJAX  
version of their website, and it does look great, take a look here:

[http://www.gucci.com/](http://www.gucci.com/)

Jose L. Hurtado  
Web D. / IT Professional  
Toronto, Canada

---

<div class="post-metadata">

**Author:** ![jose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@jose](https://www.ruby-forum.com/u/jose)\
**Post date:** [August 23, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/ajax-support-and-rails/66040/8 "2006-08-23T23:06:36Z")

</div>

Jason,

Isn’t this “difference” purely semantic.

> From what I understood, Scriptaculous includes Prototype within their  
> own framework, so if you use Scriptaculous you are using Prototype  
> anyway for the AJAX plumbing stuff, BUT it is included in the package.  
> Am I right on this one? Or do you actually need to setup BOTH  
> Prototype and Scriptaculous to make BOTH work. The way I understood  
> it, was that Scripatculous was enough for full AJAX plus visual  
> effects…

Jose L. Hurtado  
Web D. / IT Professional  
Toronto, Canada
