Roberto Saccon
2006-Jan-08 19:29 UTC
[Rails] RaislsEdge - where to get latest javascripts ?
To play with RJS I just made a "rake freeze edge". But this copies only the libs into vendor/rails and any attempt of "rake update_javascripts" fails. But all the he required javascripts are there, at: BASEPATH/vendor/rails/actionpack/lib/action_view/helpers/javascripts/ Except of prototype, they seem to have no version number, so I am asking whether I should take those javascript files from there or checkout the whole rails trunk and get them form Dir[RAILTIES_PATH + ''/html/javascripts/*.js''] ? -- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060108/df8bc8d1/attachment.html
David Heinemeier Hansson
2006-Jan-08 19:38 UTC
[Rails] RaislsEdge - where to get latest javascripts ?
> Except of prototype, they seem to have no version number, so I am asking"rake update_javascripts" -- that''ll give you the latest javascripts from the current Rails you''re running. And when you''re running edge, that means edge js. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
Roberto Saccon
2006-Jan-08 19:41 UTC
[Rails] Re: RaislsEdge - where to get latest javascripts ?
A quick look at the soure repository shows that the javascripts are from the same revison, so now maybe I should change my question: why do we have the same set of scripts at two diffferent locations ? On 1/8/06, Roberto Saccon <rsaccon@gmail.com> wrote:> > To play with RJS I just made a "rake freeze edge". But this copies only > the libs into vendor/rails and any attempt of "rake update_javascripts" > fails. > > But all the he required javascripts are there, at: > BASEPATH/vendor/rails/actionpack/lib/action_view/helpers/javascripts/ > > Except of prototype, they seem to have no version number, so I am asking > whether I should take those javascript files from there or checkout the > whole rails trunk and get them form Dir[RAILTIES_PATH + > ''/html/javascripts/*.js''] ? > > -- > Roberto Saccon - http://rsaccon.com-- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060108/eb446ec3/attachment.html
David Heinemeier Hansson
2006-Jan-08 19:41 UTC
[Rails] RaislsEdge - where to get latest javascripts ?
> > Except of prototype, they seem to have no version number, so I am asking > > "rake update_javascripts" -- that''ll give you the latest javascripts > from the current Rails you''re running. And when you''re running edge, > that means edge js.Wups, seems that you already did that. What''s the failure? -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
David Heinemeier Hansson
2006-Jan-08 19:44 UTC
[Rails] Re: RaislsEdge - where to get latest javascripts ?
> A quick look at the soure repository shows that the javascripts are from the > same revison, so now maybe I should change my question: why do we have the > same set of scripts at two diffferent locations ?Because they need to go in both the Rails package and in the Action Pack package. Believe it or not, the later can actually be used as a stand-alone framework :). Not a ton of people are doing that, though. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
Sam Stephenson
2006-Jan-08 19:46 UTC
[Rails] Re: RaislsEdge - where to get latest javascripts ?
On 1/8/06, Roberto Saccon <rsaccon@gmail.com> wrote:> A quick look at the soure repository shows that the javascripts are from the > same revison, so now maybe I should change my question: why do we have the > same set of scripts at two diffferent locations ?Action Pack has its own JS so that it can be used independently of Rails. Running "rake update_javascripts" copies the scripts from Railties'' html/javascripts/ directory. Both sets of scripts should always be identical. -- sam
Roberto Saccon
2006-Jan-08 19:50 UTC
[Rails] Re: RaislsEdge - where to get latest javascripts ?
thanks, now everything makes sense ! On 1/8/06, Sam Stephenson <sstephenson@gmail.com> wrote:> > On 1/8/06, Roberto Saccon <rsaccon@gmail.com> wrote: > > A quick look at the soure repository shows that the javascripts are from > the > > same revison, so now maybe I should change my question: why do we have > the > > same set of scripts at two diffferent locations ? > > Action Pack has its own JS so that it can be used independently of > Rails. Running "rake update_javascripts" copies the scripts from > Railties'' html/javascripts/ directory. Both sets of scripts should > always be identical. > > -- > sam > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060108/eaae6171/attachment.html
Kamal Fariz
2006-Mar-13 08:47 UTC
[Rails] Re: RaislsEdge - where to get latest javascripts ?
(wow, this is an old thread) I noticed that "rake update_javascripts" also copies over application.js. This is disastrous if you already have code in that file. My opinion is that this should either: 1. not copy it 2. ask to overwrite if we have put in something in there other than the default contents kamal On Sunday, January 08, 2006, at 1:46 PM, Sam Stephenson wrote:>On 1/8/06, Roberto Saccon <rsaccon@gmail.com> wrote: >> A quick look at the soure repository shows that the javascripts >>are from the >> same revison, so now maybe I should change my question: why do we >>have the >> same set of scripts at two diffferent locations ? > >Action Pack has its own JS so that it can be used independently of >Rails. Running "rake update_javascripts" copies the scripts from >Railties'' html/javascripts/ directory. Both sets of scripts should >always be identical. > >-- >sam >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails-- Posted with http://DevLists.com. Sign up and save your time!
Cody Fauser
2006-Mar-13 20:18 UTC
[Rails] Re: RaislsEdge - where to get latest javascripts ?
This has been fixed in http://dev.rubyonrails.org/changeset/3863 On 13 Mar 2006 08:47:31 -0000, Kamal Fariz <devlists-rubyonrails@devlists.com> wrote:> (wow, this is an old thread) > > I noticed that "rake update_javascripts" also copies over > application.js. This is disastrous if you already have code in that > file. My opinion is that this should either: > 1. not copy it > 2. ask to overwrite if we have put in something in there other than the > default contents > > > > kamal > > On Sunday, January 08, 2006, at 1:46 PM, Sam Stephenson wrote: > >On 1/8/06, Roberto Saccon <rsaccon@gmail.com> wrote: > >> A quick look at the soure repository shows that the javascripts > >>are from the > >> same revison, so now maybe I should change my question: why do we > >>have the > >> same set of scripts at two diffferent locations ? > > > >Action Pack has its own JS so that it can be used independently of > >Rails. Running "rake update_javascripts" copies the scripts from > >Railties'' html/javascripts/ directory. Both sets of scripts should > >always be identical. > > > >-- > >sam > >_______________________________________________ > >Rails mailing list > >Rails@lists.rubyonrails.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > Posted with http://DevLists.com. Sign up and save your time! > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cody Fauser http://www.codyfauser.com