How to move html element?

Does anyone knows how to make an image, or anything that I draw on my page, to move by dragging with mouse?

Is there a rails way to do it? if not, is there any way to do this?

Thank you,

Rodrigo

Have a look at the Scriptaculous Draggable library. http://script.aculo.us

This is built in to Rails < 3.1. I'm sure there's similar in jQuery for Rails >= 3.1.

Walter