# Rake update\_javascripts on edge has no effect

**URL:** <https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666>\
**Category:** Rails\
**Created:** [January 26, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666 "2006-01-26T16:30:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bburcham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Post date:** [January 26, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666/1 "2006-01-26T16:30:41Z")

</div>

I moved to the edge yesterday and ran rake update\_javascripts to get the  
latest prototype stuff into my public directory. To my surprise, the  
old files were still there afterward.

I just took a peek at javascripts.rake in  
vendor/rails/railties/lib/tasks. The update\_javascripts task is copying  
.js files from Dir[RAILTIES\_PATH + ‘/html/javascripts/\*.js’] My  
railties however has no such html directory so the cp has no effect.

The .js files seem to be located in  
vendor/rails/actionpack/lib/action\_view/helpers/javascripts

Did I do something wrong to cause the html directory to be absent in my  
railties hierarchy?

---

<div class="post-metadata">

**Author:** ![bburcham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Post date:** [January 26, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666/2 "2006-01-26T17:01:21Z")

</div>

mkay, so my question is a bit of a duplicate of  
[RaislsEdge - where to get latest javascripts? - Rails - Ruby-Forum](http://www.ruby-forum.com/topic/51068#20455) Sorry about that. Anyhoo,  
my problem seems to be that my railties hierarchy has only a lib dir.  
It has no html dir at all. I wonder why.

---

<div class="post-metadata">

**Author:** ![bburcham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Post date:** [January 26, 2006, 5:12pm UTC](https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666/3 "2006-01-26T17:12:54Z")

</div>

Looking at railties lib/tasks/framework.rake  
[http://dev.rubyonrails.org/browser/trunk/railties/lib/tasks/framework.rake](http://dev.rubyonrails.org/browser/trunk/railties/lib/tasks/framework.rake)  
I see that the freeze\_edge task does not export the html directory at  
all, to wit:

for framework in %w( railties actionpack activerecord actionmailer  
activesupport actionwebservice )  
mkdir\_p “vendor/rails/#{framework}”  
system “svn export  
[http://dev.rubyonrails.org/svn/rails/trunk/#{framework}/lib](http://dev.rubyonrails.org/svn/rails/trunk/#%7Bframework%7D/lib)  
vendor/rails/#{framework}/lib #{revision\_switch}”  
end

'sup with that? Does update\_javascripts not work with a project that  
has been freeze\_edge’d?

---

<div class="post-metadata">

**Author:** ![bburcham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Post date:** [January 26, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666/4 "2006-01-26T17:14:25Z")

</div>

Looking at railties lib/tasks/framework.rake  
[http://dev.rubyonrails.org/browser/trunk/railties/lib/tasks/framework.rake](http://dev.rubyonrails.org/browser/trunk/railties/lib/tasks/framework.rake)  
I see that the freeze\_edge task does not export the html directory at  
all. 'sup with that? Does update\_javascripts not work with a project  
that has been freeze\_edge’d?

---

<div class="post-metadata">

**Author:** ![bburcham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Post date:** [January 26, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666/5 "2006-01-26T17:21:36Z")

</div>

This happened to me as well - just copy the javascript files over by  
hand  
and it should work fine.

Zack

---

<div class="post-metadata">

**Author:** ![bburcham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Post date:** [January 26, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/rake-update-javascripts-on-edge-has-no-effect/97666/6 "2006-01-26T17:26:45Z")

</div>

Thanks Zack. That works fine. But I just wanted to know if it was  
_supposed_ to work automatically. I’m wondering what conditions have to  
hold for update\_javascripts to work as advertised. Do you know what  
conditions have to hold in order for the html directory to be present in  
the railties hierarchy?
