Report question

Question: Rails - How to select the last date in a table?