# Change default directory of javascripts?

**URL:** <https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413>\
**Category:** Ruby\
**Created:** [December 7, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413 "2007-12-07T12:45:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sun](https://www.ruby-forum.com/u/sun)\
**Post date:** [December 7, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413/1 "2007-12-07T12:45:33Z")

</div>

Hi,  
I am using overlibmws.js library to add some dynamic effect to my  
rails  
web pages. But the server can not find the gif files that required by  
javascripts. It always tries to search in , for example  
,"/experiment/index/" this directory. I changed the “OLbubbleImageDir”  
setting to “public/images”, which is the directory I put those gif  
files,  
but does not work. Server gives a 404 error.

I 'd like to know how to change the deault searching directory of  
javascripts from “…/index” to “public/images” or other place in rails  
project. I do not know anything about javascripts, except the syntax  
looks  
similiar to java.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![sun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sun](https://www.ruby-forum.com/u/sun)\
**Post date:** [December 7, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413/2 "2007-12-07T12:54:19Z")

</div>

On Dec 7, 2007, at 12:44 PM, Sun wrote:

> javascripts from “…/index” to “public/images” or other place in  
> rails  
> project. I do not know anything about javascripts, except the syntax  
> looks  
> similiar to java.

Please send your question to rubyonrails-talk.

– fxn

---

<div class="post-metadata">

**Author:** ![sun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sun](https://www.ruby-forum.com/u/sun)\
**Post date:** [December 7, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413/3 "2007-12-07T13:15:26Z")

</div>

“Xavier N.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote in message  
news:removed\_email\_address@domain.invalid…

> > I 'd like to know how to change the deault searching directory of  
> > javascripts from “…/index” to “public/images” or other place in  
> > rails  
> > project. I do not know anything about javascripts, except the syntax  
> > looks  
> > similiar to java.
> 
> Please send your question to rubyonrails-talk.

Sorry if this message was send to a wrong group. But I did not find  
“rubyonrails-talk” group on my newsserver. And this is the nearest group  
I  
can find here, hence the message.

---

<div class="post-metadata">

**Author:** ![sun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@sun](https://www.ruby-forum.com/u/sun)\
**Post date:** [December 7, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413/4 "2007-12-07T13:22:30Z")

</div>

“Sun” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote in message  
news:7358e$47593596$839b8704$removed\_email\_address@domain.invalid…

> > > setting to “public/images”, which is the directory I put those gif  
> > > Please send your question to rubyonrails-talk.
> 
> Sorry if this message was send to a wrong group. But I did not find  
> “rubyonrails-talk” group on my newsserver. And this is the nearest group I  
> can find here, hence the message.  
> Well, found it. Post my problem there. Thanks for the link.
