ticket application from rails 3 in action book