NoMethodError will display 500 in run mode, however, if you want to also display 404 status in headers in design mode, you can do the following:
redirect_to :status => 404
To display the standard 404 page, you can check the top answer here.
source
share