Skip to content

Bypassing view and layout rendering

Michel Blanc edited this page Aug 11, 2012 · 1 revision

You can use the respond! method, that directly returns a body, a HTTP status and a content type.

body = "whatever"
respond!(body, status, 'Content-Type' => 'whatever/foo')
Clone this wiki locally