rack-server-pages
rack-server-pages copied to clipboard
How do I render a template with halt?
I'd like to render a template when calling halt (for bad request, not authorized etc) and can't seem to find a way to do it.
In other words, halt seems to take a string as an argument for body but how do I render a template in the views directory to use as input to halt?
Can someone please help? Thanks!