my code for the tickets app from head-first rails