Sha256: 2801b60b3a3d9f4ac80fe0554feaff23b42f6b64135ed39a9147918d0e183a93

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 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

2 entries across 2 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/controllers/locomotive/errors_controller.rb
locomotivecms-4.2.0.alpha1 app/controllers/locomotive/errors_controller.rb