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

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

rab:javascripts $ pwd
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 B. http://agileconsultingllc.com
[email protected]
+1 513-295-4739

Um, because it doesn’t?

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

Well, the controls.js, dragdrop.js, and effects.js are part of
script.aculo.us and they are included with RoR. I’m just curious
why the entire 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 B. http://agileconsultingllc.com
[email protected]
+1 513-295-4739

slider.js support is provided in a seperate plugin that includes a
see: http://dev.rubyonrails.org/browser/plugins/scriptaculous_slider

builder.js is for the “JS fanatics”, and doesn’t have any helper
(Note that when using Rails you’re probably better of using RJS to
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 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.


Am 30.03.2006 um 12:15 schrieb Rob B.:

So does it mean I can download script.aculou.us’ zip file from your
drop everything into public/javascripts and my ruby on rails Ajax
will not be affected?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs