@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base
end
rescue_from ActiveScaffold::ActionNotAllowed do |exception|
flash.now[:error] = I18n.t("action_not_allowed")
flash.now[:error] = I18n.t("errors.action_not_allowed")
render :template => 'errors/access_denied', :layout => 'errors'
@ -2,4 +2,15 @@
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
action_not_allowed: "Action not allowed"
errors:
activerecord:
models:
ns: NS
cname: CNAME
mx: MX
soa: SOA
txt: TXT
# attributes:
# user:
# login: "Handle"