I want to access the following string from our config/locales/en.yml file in my coffee script page ..
en:
share_message: "Help our organization."
Following this guide -- http://primegap.net/2011/02/28/rails-quicktip-variables-i18n-localized-strings/, I thought the way to do it was to do
<%= t("share_message") %>
but this results in a
undefined method `t' for #<#<Class:0x00007f97ae3ddd88>:0x00007f97a7b37ae0>
error. What's the proper way to access the string in teh locales file? This is with Ruby on Rails 5.1.