The accepted treatment for a femor or thigh fracture is: