# RaislsEdge - where to get latest javascripts?

**URL:** <https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890>\
**Category:** Rails\
**Created:** [January 8, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890 "2006-01-08T20:32:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [January 8, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/1 "2006-01-08T20:32:12Z")

</div>

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’] ?

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [January 8, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/2 "2006-01-08T20:41:15Z")

</div>

> 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 H.  
[http://www.loudthinking.com](http://www.loudthinking.com) – Broadcasting Brain  
[http://www.basecamphq.com](http://www.basecamphq.com) – Online project management  
[http://www.backpackit.com](http://www.backpackit.com) – Personal information manager  
[http://www.rubyonrails.com](http://www.rubyonrails.com) – Web-application framework

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [January 8, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/3 "2006-01-08T20:44:16Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [January 8, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/4 "2006-01-08T20:44:17Z")

</div>

> > 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 H.  
[http://www.loudthinking.com](http://www.loudthinking.com) – Broadcasting Brain  
[http://www.basecamphq.com](http://www.basecamphq.com) – Online project management  
[http://www.backpackit.com](http://www.backpackit.com) – Personal information manager  
[http://www.rubyonrails.com](http://www.rubyonrails.com) – Web-application framework

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [January 8, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/5 "2006-01-08T20:47:27Z")

</div>

> 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 H.  
[http://www.loudthinking.com](http://www.loudthinking.com) – Broadcasting Brain  
[http://www.basecamphq.com](http://www.basecamphq.com) – Online project management  
[http://www.backpackit.com](http://www.backpackit.com) – Personal information manager  
[http://www.rubyonrails.com](http://www.rubyonrails.com) – Web-application framework

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [January 8, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/6 "2006-01-08T20:47:27Z")

</div>

On 1/8/06, Roberto S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [January 8, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/7 "2006-01-08T20:53:31Z")

</div>

thanks, now everything makes sense !

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [March 13, 2006, 9:50am UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/8 "2006-03-13T09:50:02Z")

</div>

(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

---

<div class="post-metadata">

**Author:** ![rsaccon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Post date:** [March 13, 2006, 9:20pm UTC](https://www.ruby-forum.com/t/raislsedge-where-to-get-latest-javascripts/51890/9 "2006-03-13T21:20:07Z")

</div>

This has been fixed in [http://dev.rubyonrails.org/changeset/3863](http://dev.rubyonrails.org/changeset/3863)

On 13 Mar 2006 08:47:31 -0000, Kamal F.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Action Pack has its own JS so that it can be used independently of

–  
Cody F.  
[http://www.codyfauser.com](http://www.codyfauser.com)
