# Updating Scriptaculous and Prototype with current project

**URL:** <https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752>\
**Category:** Rails\
**Created:** [December 28, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752 "2009-12-28T13:59:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dbc845/32.png) [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Post date:** [December 28, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752/1 "2009-12-28T13:59:32Z")

</div>

Hi

I’ve been trying to use the latest version of Lightview. It says that  
it needs:

Lightview requires Prototype 1.6.1 and Scriptaculous 1.8.2.

I have included the following in my project files:

But this obviously only works if the system is online. Unfortunately,  
the project I am writing will not have a permanent connection to  
t’internet.

My current project directory has versions of Prototype etc but not the  
latest.

How do I “install” the latest versions?

I’ve tried rake rails:update:javascripts but this does not give me the  
versions required above.

Any help would be superb!

Thanks

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dbc845/32.png) [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Post date:** [December 28, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752/2 "2009-12-28T15:40:48Z")

</div>

The simplest approach is usually the easiest. Grab the files from the  
googleapis urls. Put them in a subfolder under your javascripts  
directory, leaving the existing versions in place.

Niels

On Dec 28, 2009, at 7:58 AM, Ruby on Rails: Talk wrote:

> libs/prototype/1.6.1/prototype.js’\>  
> How do I “install” the latest versions?  
> You received this message because you are subscribed to the Google G. “Ruby on Rails: Talk” group.  
> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to removed\_email\_address@domain.invalid.  
> For more options, visit this group at [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dbc845/32.png) [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Post date:** [December 28, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752/3 "2009-12-28T20:33:03Z")

</div>

Niels Meersschaert wrote:

> The simplest approach is usually the easiest. Grab the files from the  
> googleapis urls.

Yes.

> Put them in a subfolder under your javascripts  
> directory, leaving the existing versions in place.

No. Remove the existing versions. There’s no reason to have both in  
the project in most cases.

> Niels

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dbc845/32.png) [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Post date:** [December 28, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752/4 "2009-12-28T21:09:17Z")

</div>

On Dec 28, 2009, at 2:33 PM, Marnen Laibow-Koser wrote:

> > Put them in a subfolder under your javascripts  
> > directory, leaving the existing versions in place.
> 
> No. Remove the existing versions. There’s no reason to have both in  
> the project in most cases.

That’s true & what I originally drafted, but I thought the OP might run  
into other compatibility problems with the rails helpers, so I suggested  
a subfolder. This approach would let them try it without inducing other  
issues, but once they’ve eliminated any issues or confirmed it works as  
expected, Marnen’s suggestion is the ideal implementation.

Niels

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
