# Issue w helper

**URL:** <https://www.ruby-forum.com/t/issue-w-helper/148547>\
**Category:** Rails\
**Created:** [September 14, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/issue-w-helper/148547 "2008-09-14T19:25:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [September 14, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/issue-w-helper/148547/1 "2008-09-14T19:25:52Z")

</div>

in one of my partials, I was using the following code (made it  
short…)

 \<% for work in @works %\> - \<%= work.title -%\> 

 \<%= draggable\_element "work\_#{work.id}", :revert =\> true %\> \<% end %\>

due to an issue with the overflow:scroll + drag/drop , I need to  
change the helper for a more complicated script, and I don’t see how  
to set the id of the

- , something like “work\_\<%= work.id -%\>” or  
“work\_#{work.id}”  
the script is the following : where xxx should be the work.id

btw this script runs well, and help drag an item from a  
overflow:scroll container above all other areas…  
just need to load   
before prototype and scriptaculous…

thanks for any clue …
