I have here a gingerbread man I modeled, and I used a path and Bézier curve to create the frosting. But the frosting is hovering over the gingerbread man, so I need to know how to attach the frosting to the gingerbread man. I have already tried using the curve modifier, but it won't give me the results I want.
First create a curve > bezier object in object mode.
Enter edit mode (Tab). You can delete the existing curve segments by pressing A to select all vertices and pressing Delete.
In the Options tab enable the projection depth to surface, that way the drawn curves will stick to the surface of other objects.
Then go to the Create tab and select Draw Curve to draw a curve directly in the 3D viewport.
For more info watch this: https://www.youtube.com/watch?v=tAsUGy7XGOA