Question

In other words, how do I throw a "404 - not found" in Ramaze?

Was it helpful?

Solution

You can use the Innate::Helper::Redirect#respond (source) method which gets included into your controller to return any response:

def my_action    
  respond("Response body", 404)
end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top