Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
how can i access locale files from rake task
16 views
Skip to first unread message
tom
unread,
Jan 21, 2019, 11:36:43 AM
1/21/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
hi,
how can i do this?
task test: :environment do
p t('pages.index.slogan11')
end
Frederick Cheung
unread,
Jan 26, 2019, 1:29:31 PM
1/26/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
You should be able to do I18n.t(“...”)
As an aside naming the task `test` may clash with the preexisting task of the same name.
Fred
Reply all
Reply to author
Forward
0 new messages