I believe that the 1st , 2nd , & 3rd Gen Dodge Rams all had Straight Sided Beds.
The 4th & 5th Gen Rams, had curved sided beds
The tailgates for year 2009 & all the rest of the 4th Gen Dodge Rams had a water catching lip at the tailgates closed upper lip.
Beginning with the 5th Gen Rams, the upper Tailgate lip was flattened, so that it did not catch much water.
most Ram bed lengths are ;
5 foot 7 inches on Crew & Mega cabs
6 foot 4 inches on Quad & Crew cabs
8 foot , usually on Regular cabs , ( 2 door cab )