# Javascripts

**URL:** <https://www.ruby-forum.com/t/javascripts/98289>\
**Category:** Rails\
**Created:** [January 28, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/javascripts/98289 "2006-01-28T19:08:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 28, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/javascripts/98289/1 "2006-01-28T19:08:49Z")

</div>

Trying to use auto\_complete\_for which works fine on my home system.

I see that when I use \<%= javascript\_include\_tag “defaults” %\>  
that when used, the webrick reports  
GET /javascripts/prototype.js  
GET /javascripts/dragdrop.js  
GET /javascripts/effects.js  
GET /javascripts/controls.js

but on the system that I am trying to develop on and doing similarly,  
the webrick only reports  
GET /javascripts/defaults.js  
even though public/javascripts/  
has the other javascripts there in the folder.

I am thinking that this has something to do with why the  
auto\_complete\_for function works on my home system but I have yet to  
make it work on the system I am trying to develop for.

My home system is ruby-1.8.4-1.fc4 # Fedora-Core 4  
my devel system is ruby-1.8.3-2.c2 # CentOS-4

Is this the issue? Why does use of  
\<%= javascript\_include\_tag "defaults %\> seem to call the other  
javascripts on my home system but not on the devel system?

Craig

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 28, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/javascripts/98289/2 "2006-01-28T21:33:23Z")

</div>

Craig W. wrote:

> Trying to use auto\_complete\_for which works fine on my home system.
> 
> I see that when I use \<%= javascript\_include\_tag “defaults” %\>  
> that when used, the webrick reports  
> GET /javascripts/prototype.js  
> GET /javascripts/dragdrop.js  
> GET /javascripts/effects.js  
> GET /javascripts/controls.js

The correct way to include the defaults is with

\<%= javascript\_include\_tag :defaults %\>

See  
[http://api.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html#M000394](http://api.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html#M000394)

Phil

–  
Philip R.  
[http://tzinfo.rubyforge.org/](http://tzinfo.rubyforge.org/) – DST-aware timezone library for Ruby

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 28, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/javascripts/98289/3 "2006-01-28T21:48:28Z")

</div>

On Sat, 2006-01-28 at 20:22 +0000, Philip R. wrote:

> The correct way to include the defaults is with
> 
> \<%= javascript\_include\_tag :defaults %\>
> 
> See  
> [Peak Obsession](http://api.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html#M000394)

* * *

bing!

thanks

Craig
