In a regular octagon, what is the ratio of the length of its longest diagonal to the length of its shortest diagonal?

I would easily be able to do this if it were talking about a hexagon, because its so easy to construct equilateral triangles in one, but in an octagon, all the angles and lengths are messed up and :confused: .