これは私のconfig/locales /en.ymlファイルです:
# 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>
では、エラーなしでメッセージ値を取得するにはどうすればよいですか?