Updating Scriptaculous and Prototype with current project

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:

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/
libs/prototype/1.6.1/prototype.js'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/
libs/scriptaculous/1.8.2/scriptaculous.js'></script>

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

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:

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,

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