Final answer:
The innervation for the anterior compartment of the thigh comes from nerves from vertebral bodies L2-L4 except for the sartorius. The primary actions of muscles from this compartment are hip flexion and knee extension.
Step-by-step explanation:
The innervation for the anterior compartment of the thigh comes from nerves from vertebral bodies L2-L4, except for the sartorius. This is remembered with the saying 'L2, L3, L4 keeps the thigh off the floor.' The primary actions of muscles from this compartment include hip flexion and knee extension.