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



8
9
10
# File 'app/controllers/locomotive/errors_controller.rb', line 8

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

#error_500Object



12
13
14
# File 'app/controllers/locomotive/errors_controller.rb', line 12

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

#no_siteObject



16
17
18
19
20
# File 'app/controllers/locomotive/errors_controller.rb', line 16

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