If a user reaches the ticket book page (book.html.erb)
Case 1: Browser's Back button should not work here. The user will remain to stay on the same page book ticket.
Case 2: If the user clicks Browser's Back button many times in the case also user will remain to stay on the same page book ticket.
Case 3: If the User entered any URL in Browser in this case user remains to stay on the same page book ticket.
Please suggest any rails functionality to achieve this or suggest any JavaScript for this.