Glen, and anyone else,
Ramps should always be secured/connected/hooked to the truck, trailer, or whatever you are using them on, to prevent just what happened to you. If they are not secured, one spin of a wheel can/will kick that ramp out from under the tractor and down you go.