我对使用 rails yaml 文件有点困惑。
我的应用程序抛出以下错误
I18n::InvalidLocaleData
我的 yaml 文件是
en:
auth:
register:
success: "Successfully registered"
error: "Please correct the errors"
我的控制器是
class AuthController < ApplicationController
def register
blahblah
flash[:error] = t '.auth.register.error'
end
任何人都可以帮助如何使用yaml。我检查了它显示的yamlintvalid YAML