drag to rotate an object

sorry for asking the question
i am new to use unity and i just want to do is drag a cube by moving the mouse
is there any example i can study at?
i have search some solutions before and i have tried to insert the code
but nothing happen and i think i didnt make it right. i even don"t know what kind of code it is.
and is there some int or name i have to change?

thanks for helping

Do you want the gameObject to follow the mouse cursor around as though it’s attached?
c
if that’s the case you can use Camera.ScreenToWorldPoint and then set the game objects transform.position to that Vector3

http://unity3d.com/support/documentation/ScriptReference/Camera.ScreenToWorldPoint.html