Forum: Ruby on Rails Why doesn't Rails 1.1 have all the Script.aculo.us 1.6 files

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Rob B. (Guest)
on 2006-03-30 03:49
(Received via mailing list)
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
removed_email_address@domain.invalid
+1 513-295-4739
Tom A. (Guest)
on 2006-03-30 14:05
(Received via mailing list)
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.
Rob B. (Guest)
on 2006-03-30 14:17
(Received via mailing list)
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

Rob B.		http://agileconsultingllc.com
removed_email_address@domain.invalid
+1 513-295-4739
Thomas F. (Guest)
on 2006-03-30 14:42
(Received via mailing list)
slider.js support is provided in a seperate plugin that includes a
helper,
see: http://dev.rubyonrails.org/browser/plugins/scripta...

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 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.:
Lin J. (Guest)
on 2006-03-30 18:32
(Received via mailing list)
So does it mean I can download 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
This topic is locked and can not be replied to.