When that happened to my '99 Dakota, it was the speed sensor on the rear axle. Easy fix in my case.

On my '04 Ram, you turn the ignition key to just before it cranks over 3 times and look at the digital odometer to view the codes.

on-off-on-off-on. Not sure if it is the same on a 2008.