Ruby on Rails: Talk
2009-Dec-28 12:58 UTC
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 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Niels Meersschaert
2009-Dec-28 14:39 UTC
Re: Updating Scriptaculous and Prototype with current project
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:> 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 > > -- > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2009-Dec-28 19:33 UTC
Re: Updating Scriptaculous and Prototype with current projec
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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Niels Meersschaert
2009-Dec-28 20:07 UTC
Re: Re: Updating Scriptaculous and Prototype with current projec
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.