Origin of candy canes?

OK, I searched the forums and the archive, but I didn’t find a post addressing this specifically.

I’ve received more than once a story proclaiming the “true story of the candy cane,” saying it was designed as a christian symbol.

So, is this true, or is it as Tom and Ray of Car Talk say, “boooooogus”?