Ticket Program from Rails 3 in Action