returns empty 404 instead of raising exception
for the catch-all route
This commit is contained in:
committed by
Juanjo Bazán
parent
a31a71a45f
commit
2d4d057b48
@@ -4,6 +4,6 @@ class PagesController < ApplicationController
|
||||
def show
|
||||
render action: params[:id]
|
||||
rescue ActionView::MissingTemplate
|
||||
raise ActionController::RoutingError.new('Not Found')
|
||||
head 404
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user