# Why doesn't Rails 1.1 have all the Script.aculo.us 1.6 files

**URL:** <https://www.ruby-forum.com/t/why-doesnt-rails-1-1-have-all-the-script-aculo-us-1-6-files/56305>\
**Category:** Rails\
**Created:** [March 30, 2006, 1:49am UTC](https://www.ruby-forum.com/t/why-doesnt-rails-1-1-have-all-the-script-aculo-us-1-6-files/56305 "2006-03-30T01:49:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [March 30, 2006, 1:49am UTC](https://www.ruby-forum.com/t/why-doesnt-rails-1-1-have-all-the-script-aculo-us-1-6-files/56305/1 "2006-03-30T01:49:38Z")

</div>

Why aren’t builder.js, slider.js, and scriptaculous.js part of the  
Rails 1.1 javascripts?

rab:javascripts $ pwd  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/html/javascripts  
rab:javascripts $ ls -l  
total 288  
-rw-r–r-- 1 root wheel 148 Mar 28 08:56 application.js  
-rw-r–r-- 1 root wheel 28036 Mar 28 08:56 controls.js  
-rw-r–r-- 1 root wheel 23613 Mar 28 08:56 dragdrop.js  
-rw-r–r-- 1 root wheel 32740 Mar 28 08:56 effects.js  
-rw-r–r-- 1 root wheel 54330 Mar 28 08:56 prototype.js  
rab:javascripts $ cd ~/src/scriptaculous-js-1.6.0/src  
rab:src $ ls -l  
total 240  
-rw-r–r-- 1 rab rab 3361 Mar 28 03:27 builder.js  
-rw-r–r-- 1 rab rab 28036 Mar 28 03:27 controls.js  
-rw-r–r-- 1 rab rab 23613 Mar 28 03:27 dragdrop.js  
-rw-r–r-- 1 rab rab 32740 Mar 28 03:27 effects.js  
-rw-r–r-- 1 rab rab 2245 Mar 28 03:27 scriptaculous.js  
-rw-r–r-- 1 rab rab 10790 Mar 28 03:27 slider.js  
-rw-r–r-- 1 rab rab 12931 Mar 28 03:27 unittest.js  
rab:src $

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid  
+1 513-295-4739

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [March 30, 2006, 12:05pm UTC](https://www.ruby-forum.com/t/why-doesnt-rails-1-1-have-all-the-script-aculo-us-1-6-files/56305/2 "2006-03-30T12:05:22Z")

</div>

Um, because it doesn’t?

Rails comes with the prototype library. Scriptaculous itself is built  
upon  
prototype, but is not the same AS prototype. Hence why it’s not part of  
the  
RoR distro.

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [March 30, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/why-doesnt-rails-1-1-have-all-the-script-aculo-us-1-6-files/56305/3 "2006-03-30T12:17:44Z")

</div>

Well, the controls.js, dragdrop.js, and effects.js are part of  
[script.aculo.us](http://script.aculo.us) and they _are_ included with RoR. I’m just curious  
why the entire [script.aculo.us](http://script.aculo.us) distro isn’t bundled.

If I had to guess, I’d think it would be related to what has  
JavascriptHelpers to support, but it still seems odd.

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid  
+1 513-295-4739

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [March 30, 2006, 12:42pm UTC](https://www.ruby-forum.com/t/why-doesnt-rails-1-1-have-all-the-script-aculo-us-1-6-files/56305/4 "2006-03-30T12:42:12Z")

</div>

slider.js support is provided in a seperate plugin that includes a  
helper,  
see: [http://dev.rubyonrails.org/browser/plugins/scriptaculous\_slider](http://dev.rubyonrails.org/browser/plugins/scriptaculous_slider)

builder.js is for the “JS fanatics”, and doesn’t have any helper  
support.  
(Note that when using Rails you’re probably better of using RJS to  
generate  
stuff on the server).

unittest.js is obviously a highly specialized library for JavaScript  
unit testing.

Because Rails has it’s own JavaScript  
“loader” (javascript\_include\_tag :defaults)  
the scriptaculous.js file itself is not needed.

Of course the Rails [script.aculo.us](http://script.aculo.us) files are not altered in any way,  
so you can  
just drop in the full distribution if you like, the Rails helpers  
will still work as expected.

-Thomas

Am 30.03.2006 um 12:15 schrieb Rob B.:

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [March 30, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/why-doesnt-rails-1-1-have-all-the-script-aculo-us-1-6-files/56305/5 "2006-03-30T16:32:02Z")

</div>

So does it mean I can download [script.aculou.us](http://script.aculou.us)’ zip file from your  
website,  
drop everything into public/javascripts and my ruby on rails Ajax  
helpers  
will not be affected?

Regards
