# Fwd: change javascript default from jquery back to prototype

**URL:** <https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134>\
**Category:** Rails\
**Created:** [January 7, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134 "2009-01-07T17:32:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegiotto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/13edae/32.png) [@felipegiotto](https://www.ruby-forum.com/u/felipegiotto)\
**Post date:** [January 7, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134/1 "2009-01-07T17:32:35Z")

</div>

Hello all,

recently I installed the jrails plugin which changed the  
javascript\_include\_tag :defaults to include the jquery libraries…

The jquery did no good, so I want the prototype back, but i can’t manage  
to  
get the :defaults to include its libraries to me…

any tips on that are greatly appreciated!!

thanks and cheers!

–  
gallois  
aka Felipe G.  
blog: www.gallois.com.br/blog  
fanglib homepage: www.gallois.com.br/fanglib

---

<div class="post-metadata">

**Author:** ![felipegiotto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/13edae/32.png) [@felipegiotto](https://www.ruby-forum.com/u/felipegiotto)\
**Post date:** [January 7, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134/2 "2009-01-07T17:44:58Z")

</div>

Remove the vendor/plugin/jrails directory and remove the jquery  
scripts in public/javascripts/

That should be all you need todo…

---

<div class="post-metadata">

**Author:** ![felipegiotto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/13edae/32.png) [@felipegiotto](https://www.ruby-forum.com/u/felipegiotto)\
**Post date:** [January 7, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134/3 "2009-01-07T17:47:18Z")

</div>

already did it, no luck

On Wed, Jan 7, 2009 at 14:44, Freddy A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Remove the vendor/plugin/jrails directory and remove the jquery  
> scripts in public/javascripts/
> 
> That should be all you need todo…
> 
> >

–  
gallois  
aka Felipe G.  
blog: www.gallois.com.br/blog  
fanglib homepage: www.gallois.com.br/fanglib

---

<div class="post-metadata">

**Author:** ![felipegiotto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/13edae/32.png) [@felipegiotto](https://www.ruby-forum.com/u/felipegiotto)\
**Post date:** [January 7, 2009, 7:34pm UTC](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134/4 "2009-01-07T19:34:48Z")

</div>

check this variable in console:

> > ActionView::Helpers::AssetTagHelper::JAVASCRIPT\_DEFAULT\_SOURCES

---

<div class="post-metadata">

**Author:** ![felipegiotto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/13edae/32.png) [@felipegiotto](https://www.ruby-forum.com/u/felipegiotto)\
**Post date:** [January 7, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134/5 "2009-01-07T22:04:55Z")

</div>

the variable was ok, i just overwritten it with itself and restarted the  
server and now it is working…

thank you!!

cheers

On Wed, Jan 7, 2009 at 16:33, Dingding Ye [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > gallois  
> > aka Felipe G.  
> > blog: www.gallois.com.br/blog  
> > fanglib homepage: www.gallois.com.br/fanglib
> 
> >

–  
gallois  
aka Felipe G.  
blog: www.gallois.com.br/blog  
fanglib homepage: www.gallois.com.br/fanglib
