Patch #26341 ยป patch.diff
| app/controllers/application_controller.rb | ||
|---|---|---|
| 502 | 502 |
end |
| 503 | 503 | |
| 504 | 504 |
# Handler for ActionView::MissingTemplate exception |
| 505 |
def missing_template |
|
| 506 |
logger.warn "Missing template, responding with 404" |
|
| 505 |
def missing_template(exception)
|
|
| 506 |
logger.warn "Missing template, responding with 404: #{exception}"
|
|
| 507 | 507 |
@project = nil |
| 508 | 508 |
render_404 |
| 509 | 509 |
end |