I was updating error pages to follow latest GDS standard (https://design-system.service.gov.uk/patterns/). I needed to test the 422 page.
After few failed attempts I found this solution to work, just put this code in your index method on your home page:
raise(ActionController::InvalidAuthenticityToken)
I hope it helped.
Leave a Reply