Parenting bones to another object

hi all,

im trying to learn to make an animation using bones.
i have come so far that im able to put bones in a mesh (legs) and parent them to the mesh and make them move in the pose mode.

Now i want to connect the legs (parented to the bones) to a cube (body), but if i try that the bones get disconnected form the leg mesh.

Is there a special way to achieve this, its probably soemthing simple that im not seeing.

I can parent the leg to the cube but than the bones get disconnected form the leg…


Thanks in advance

think i got this figured out, i needed to parent the bones to the body…