rack-server-pages icon indicating copy to clipboard operation
rack-server-pages copied to clipboard

How do I render a template with halt?

Open u89012 opened this issue 6 years ago • 0 comments

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!

u89012 avatar Mar 04 '19 08:03 u89012