digitalhelpersleague/asterism

View on GitHub
app/controllers/errors_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ErrorsController < ApplicationController

  def error_404
    @error_message = "Страница не найдена"
    render :error, status: 404
  end

  def error_500
    @error_message = "Опаньки!"
    render :error, status: 500
  end

end