How can I abort processing in the middle of a page & return?

steve dogers wrote:

it's just that I'd love to have a way to just dump the
object, then immediately abort the processing of the request and return
the truncated results to the user.

That would save me a lot of time.

Any idea how I could do that?

raise @object.inspect


return false (if you just want to abort processing).

You cannot, however, return the truncated results, as they don't yet
exist until rendered. Rails doesn't work with, err, buffered output, I
believe it's called.