that's the ticket

Etymology
, from the 1820s.

Phrase

 * 1)  That's just right; that's just what is needed.