# Problem with script.aculos.us script

**URL:** <https://www.ruby-forum.com/t/problem-with-script-aculos-us-script/103998>\
**Category:** Ruby\
**Created:** [May 12, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/problem-with-script-aculos-us-script/103998 "2007-05-12T17:00:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [May 12, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/problem-with-script-aculos-us-script/103998/1 "2007-05-12T17:00:08Z")

</div>

Hello everybody,

I’m newbie to rails application.

I like to use [script.aculos.us](http://script.aculos.us) script in my app.

I faced the following problem.

1. first i creat my application.
2. Then I copied the files

scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and  
slider.js  
and prototype.js

into my app/public/javascripts/

1. Then included the \<%= javascript\_include\_tag :defaults %\> code into  
head section of my view file.

2. Then executed the code

drag
\<%= javascript\_tag "new Draggable('dragDIV')" %\>
helper
\<%= draggable\_element :helperDIV %\>

But now I can’t drag it. Whats the wrong I did. Can anyone suggest me.

Or is there any code to check whether the javascripts are included  
correctly or not.

Regards,  
Veeraa

---

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [May 12, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/problem-with-script-aculos-us-script/103998/2 "2007-05-12T17:48:58Z")

</div>

On May 12, 8:00 am, Veera S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Regards,  
> Veeraa
> 
> –  
> Posted viahttp://www.ruby-forum.com/.

Here’s the rails and prototype/scriptaculous lists (the 2nd is quite  
active):  
[http://groups.google.com/group/rubyonrails-talk](http://groups.google.com/group/rubyonrails-talk)

[http://groups.google.com/group/rubyonrails-spinoffs/topics](http://groups.google.com/group/rubyonrails-spinoffs/topics)

---

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [May 12, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/problem-with-script-aculos-us-script/103998/3 "2007-05-12T20:32:15Z")

</div>

On May 12, 2007, at 11:00 AM, Veera S. wrote:

> scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and  
> slider.js  
> and prototype.js
> 
> into my app/public/javascripts/
> 
> 1. Then included the \<%= javascript\_include\_tag :defaults %\> code into  
> head section of my view file.

View the source of the page and look at the headers to see what you  
get when you ask for :defaults. Is everything you expect to see  
actually there?

> Or is there any code to check whether the javascripts are included  
> correctly or not.
> 
> Regards,  
> Veeraa

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid
