Rob Biedenharn
2006-Mar-29 23:50 UTC
[Rails] 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 /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 Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com +1 513-295-4739
Tom Armitage
2006-Mar-30 10:04 UTC
[Rails] Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
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. On 30/03/06, Rob Biedenharn <Rob@agileconsultingllc.com> wrote:> > > 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 Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com > +1 513-295-4739 > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060330/de77b3a5/attachment.html
Rob Biedenharn
2006-Mar-30 10:16 UTC
[Rails] Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
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 Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com +1 513-295-4739 On Mar 30, 2006, at 5:04 AM, Tom Armitage wrote:> 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. > > On 30/03/06, Rob Biedenharn <Rob@agileconsultingllc.com> wrote: > > 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 Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com > +1 513-295-4739 > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060330/7413cf65/attachment.html
Thomas Fuchs
2006-Mar-30 10:40 UTC
[Rails] Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
slider.js support is provided in a seperate plugin that includes a helper, see: 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 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 Biedenharn:> 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 Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com > +1 513-295-4739 > > > On Mar 30, 2006, at 5:04 AM, Tom Armitage wrote: > >> 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. >> >> On 30/03/06, Rob Biedenharn <Rob@agileconsultingllc.com> wrote: >> 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 Biedenharn http://agileconsultingllc.com >> Rob@AgileConsultingLLC.com >> +1 513-295-4739 >> >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Lin Jiaqi
2006-Mar-30 14:32 UTC
[Rails] Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6files?
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 -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Thomas Fuchs Sent: Thursday, March 30, 2006 6:41 PM To: rails@lists.rubyonrails.org Subject: Re: [Rails] Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6files? slider.js support is provided in a seperate plugin that includes a helper, see: 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 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 Biedenharn:> 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 Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com > +1 513-295-4739 > > > On Mar 30, 2006, at 5:04 AM, Tom Armitage wrote: > >> 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. >> >> On 30/03/06, Rob Biedenharn <Rob@agileconsultingllc.com> wrote: >> 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 Biedenharn http://agileconsultingllc.com >> Rob@AgileConsultingLLC.com >> +1 513-295-4739 >> >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails