# Problem with using script.aculos.us

**URL:** <https://www.ruby-forum.com/t/problem-with-using-script-aculos-us/104187>\
**Category:** Rails\
**Created:** [May 15, 2007, 6:55am UTC](https://www.ruby-forum.com/t/problem-with-using-script-aculos-us/104187 "2007-05-15T06:55:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/bbe5ce/32.png) [@vikki](https://www.ruby-forum.com/u/vikki)\
**Post date:** [May 15, 2007, 6:55am UTC](https://www.ruby-forum.com/t/problem-with-using-script-aculos-us/104187/1 "2007-05-15T06:55:00Z")

</div>

HI everybody,

I’m newbie to rails application.  
I like to use [script.aculos.us](http://script.aculos.us) script in my app.

In that I can’t drag the items using script.

This is the code I used inside my .rhtml file.

**Effects**

 Click here if you've seen enough. 

 Click here if you've seen enough.

**Drag and Drop**

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

And i have the files scriptaculous.js, builder.js, effects.js,  
dragdrop.js, controls.js and  
slider.js and prototype.js in my app/public/javascripts/

**Effects** is working well. But **Drag and Drop** is only  
not working well. I cant drag the the above things. And in my  
development.log its fetch the above 6 javascripts. I mean it includes  
the .js files into my app. But still its not working. Any other  
suggestion. Or I missed any code to enable the drag function.

Regards,  
Vikki…

---

<div class="post-metadata">

**Author:** ![vikki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/bbe5ce/32.png) [@vikki](https://www.ruby-forum.com/u/vikki)\
**Post date:** [May 15, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/problem-with-using-script-aculos-us/104187/2 "2007-05-15T15:21:02Z")

</div>

On 5/15/07, vikki [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> This is the code I used inside my .rhtml file.

Looks like you forgot dragdrop.js

I suggest you use the Rails helper to pull in the scripts:

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

That pulls in all the prototype and scriptaculous scripts, so you  
don’t forget anything.
