Class: Locomotive::ErrorsController

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

Instance Method Summary collapse

Instance Method Details

#error_404Object



6
7
8
# File 'app/controllers/locomotive/errors_controller.rb', line 6

def error_404
  render '404', status: :not_found
end

#error_500Object



10
11
12
# File 'app/controllers/locomotive/errors_controller.rb', line 10

def error_500
  render '500', status: :internal_server_error
end

#no_siteObject



14
15
16
17
18
# File 'app/controllers/locomotive/errors_controller.rb', line 14

def no_site
  respond_to do |format|
    format.html { render 'no_site', status: :not_found }
  end
end