Update application_controller.rb

add constant error for activerecord and for business logic