Sha256: bd3fb9b00e3d81576787288575a672a7b5a8f033d9efba7e925f423c69d484a6

Contents?: true

Size: 422 Bytes

Versions: 17

Compression:

Stored size: 422 Bytes

Contents

module Locomotive
  class ErrorsController < ApplicationController

    layout '/locomotive/layouts/error'

    helper Locomotive::BaseHelper

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

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

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

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotivecms-4.1.1 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.1.0 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.1.0.rc1 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.3 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.2 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.1 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.0 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.0.rc0 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.0.alpha3 app/controllers/locomotive/errors_controller.rb
locomotivecms-3.4.1 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.0.alpha2 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.0.0.alpha1 app/controllers/locomotive/errors_controller.rb
locomotivecms-3.4.0 app/controllers/locomotive/errors_controller.rb
locomotivecms-3.3.0 app/controllers/locomotive/errors_controller.rb
locomotivecms-3.3.0.rc3 app/controllers/locomotive/errors_controller.rb
locomotivecms-3.3.0.rc2 app/controllers/locomotive/errors_controller.rb
locomotivecms-3.3.0.rc1 app/controllers/locomotive/errors_controller.rb