Something weird about draggable_element_js

Hi,

Because I want to create several draggable elements in a list, I’d
like to do the following:

However, if you’d try this in your app, you’ll see that this won’t
work, because the quotes around the ID in the generated javascript are
converted to the HTML-equivalent (").

Is this a bug or am I doing something wrong?

Regards,
Jaap H.

On Nov 27, 10:48pm, jhaagmans [email protected] wrote:

However, if you’d try this in your app, you’ll see that this won’t
work, because the quotes around the ID in the generated javascript are
converted to the HTML-equivalent (").

Is this a bug or am I doing something wrong?

Regards,
Jaap H.

Sorry, the .to_sym was something I tried, but I of course tried it
without the .to_sym first.

On 27 nov, 23:01, jhaagmans [email protected] wrote:

<%- elements.each do |element| -%>

Regards,
Jaap H.

Sorry, the .to_sym was something I tried, but I of course tried it
without the .to_sym first.

The same goes for drop_receiving_element_js, by the way. Can anyone
tell me what I’m doing wrong?

Regards,
Jaap H.