I''d like to try autocompletion, and my understanding based on AWDWR:2, and on various website tutorials, is that I should install the script.aculos.us javascript library. My question is how to do that. The instructions on their site tell me to "Put prototype.js, scriptaculous.js, builder.js, effects.js, dragdrop.js, slider.js and controls.js in a directory of your website, e.g. /javascripts", but I''m not sure what that means. A "locate" on my box shows a couple of places that have such-named directories, e.g. /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/ helpers/javascripts and /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/html/javascripts but I''m not sure I want to be messing with such things manually. Is there a gem that will install script.aculo.us in a way that avoids conflicts and allows for clean updates? Alternatively, might someone be so kind as to tell me where I should put the file? PS. my system is Mac OS X. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
dankelley wrote:> I''d like to try autocompletion, and my understanding based on AWDWR:2, > and on various website tutorials, is that I should install the > script.aculos.us > javascript library. > > My question is how to do that. The instructions on their site tell me > to "Put prototype.js, scriptaculous.js, builder.js, effects.js, > dragdrop.js, slider.js and controls.js in a directory of your website, > e.g. /javascripts", but I''m not sure what that means.You are reading the documentation in the wrong order or something. Generate a rails project with rails my_project Go into the folder my_project/public/javascripts/ , and everything is there, pre-installed for you, ready for a web server to pick up the public folder and serve them, nearly automatically.> A "locate" on > my box shows a couple of places that have such-named directories,Learn also to use a command line for these things. Nothing in Rails, and very little of the features in the available editors, can do the windows-oriented file browsing management thing. You shouldn''t either to do Rails right, because you will soon be using ''rake'' to manage and test things.> PS. my system is Mac OS X.Learn ''bash''; Mac calls it Terminal... -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 4, 4:01 pm, "Phlip" <phlip2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> dankelley wrote: > > A "locate" on > > my box shows a couple of places that have such-named directories, > > Learn also to use a command line for these things. Nothing in Rails, and > very little of the features in the available editors, can do the > windows-oriented file browsing management thing. You shouldn''t either to do > Rails right, because you will soon be using ''rake'' to manage and test > things.I suspect that if dankelley is using the ''locate'' command, he''s probably already acquainted with the terminal. Chris --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks, Phlip. Now I see that the files are to go into (myapp)/public/javascripts but I''m still a bit worried about simply copying scriptaculous files there, because doing so will over-write files prototype.js effects.js dragdrop.js controls.js that already exist there, pre-installed by my rails command. I guess I could back up the rails-installed files and replace them, hoping that my tests would uncover any possible errors. But such a strategy has proved risky in the past (I''ve been a unix nerd for 20 years), hence my followup on this thread. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Mear wrote:> I suspect that if dankelley is using the ''locate'' command, he''s > probably already acquainted with the terminal.Ouch. Sorry. I forgot that Macs had finally caught up with the 1980s. -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
dankelley wrote:> but I''m still a bit worried about simply copying scriptaculous files > there, because doing so will over-write files > > prototype.js > effects.js > dragdrop.js > controls.js > > that already exist there, pre-installed by my rails command.What''s going on?? Those _are_ the Script.aculo.us files! Did you think they are some other files that happen to have the same names?? -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It seems there are two choices: 1. Copy scriptaculous.js to (myapp)/public/javascripts/ without copying the other five files named in the README for the scriptaculous tarball. 2. Copy scriptaculous.js and the other files. I tried #1 and it seems to work. I''ll report here later, if I find that there are problems. To clarify my original request for anyone who happens upon this thread later on, my initial hope was to install a "gem" that would cause the "rails" command to create a working setup from the start, i.e. installing all of the requisite files, including scriptaculous.js, into the (myapp)/public/javascripts directory from the start. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
dankelley wrote:> To clarify my original request for anyone who happens upon this thread > later on, my initial hope was to install a "gem" that would cause the > "rails" command to create a working setup from the start, i.e. > installing all of the requisite files, including scriptaculous.js, > into the > (myapp)/public/javascripts > directory from the start.What''s wrong with the ones that are already there? -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 4, 1:22 pm, "Phlip" <phlip2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What''s wrong with the ones that are already there?scriptaculous.js is not already there. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 4, 9:27 am, "dankelley" <Dan.Kel...-gCeW8nNvq2Y@public.gmane.org> wrote:> On Feb 4, 1:22 pm, "Phlip" <phlip2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > What''s wrong with the ones that are already there? > > scriptaculous.js is not already there.You don''t need it. It''s just a wrapper for the other three scriptaculous files (as far as I know). Scriptaculous comes pre-installed with rails as soon as you create your project. You just need to add this line: <%= javascript_include_tag :defaults %> in the header section of your view or layout and it gives you access to both prototype and scriptaculous. You *don''t need to install anything*. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> You *don''t need to install anything*.Excellent! This solves my problem completely. Somehow, I missed that. Thanks, to all who have helped me with this, and perhaps will help others who stumble upon this thread. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---