Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
换句话说,我如何在 Ramaze 中抛出“404 - not found”?
您可以使用包含在控制器中的Innate::Helper::Redirect#respond( source ) 方法来返回任何响应:
Innate::Helper::Redirect#respond
def my_action respond("Response body", 404) end