Class: CatchAllController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/catch_all_controller.rb

Instance Method Summary collapse

Instance Method Details

#resolveObject



2
3
4
5
6
# File 'app/controllers/catch_all_controller.rb', line 2

def resolve
  respond_to do |format|
    format.all { render plain: 'Page not found', status: :not_found }
  end
end