这是我的配置/区域设置/ en.yml文件:Ruby on Rails的如何调用现场消息,查看
# Sample localization file for English. Add more files in this directory for other locales.
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
hello: "Hello world"
signup_title: "Sign Up for Test"
我在视图中使用调用此文件的消息,(可能是不当使用)
<h1><%= en.signup_title %></h1>
,当然,我得到了一些错误
undefined local variable or method `en' for #<#<Class:0x007fd14d4f4338>:0x007fd14d501fb0>
所以,我怎么能得到没有任何错误消息的价值?