Skip to content
Max Ivak edited this page Oct 15, 2018 · 1 revision

Use resource in view

  • use resource name
  • its value will be automatically translated for the current language
=::Optimacms::Resource.resource_name

or using helper

=msg.resource_name

example:

# app/views/shared/_footer.html.haml

=msg.footer_copyright

where 'footer_copyright' is name of the resource.