Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for meta tags in locales #84

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mtrolle
Copy link

@mtrolle mtrolle commented Mar 13, 2015

Fixed #83 creating support for adding meta tags via locales in the
format:

en:
  meta_tags:
    [controller]:
      [action]:
        title: My title

etc.
I have not created any tests as I’m quite frankly not sure how to write
them using locales data.

Fixed kpumuk#83 creating support for adding meta tags via locales in the
format:
en:
  meta_tags:
    `controller`:
      `action`:
        title: My title
etc.

I have not created any tests as I’m quite frankly not sure how to write
them using locales data.
@@ -14,6 +14,7 @@ module ControllerHelper

included do
alias_method_chain :render, :meta_tags
before_filter: :meta_tags_from_locales
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unexpected token tCOLON

# [locale].meta_tags.[controller_name].[action].[title|description|keywords]
# So en.meta_tags.visitors.index.title would be loaded as title for default
# welcome page in the visitors controller in english.
def meta_tags_from_locales
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Branch Condition size for meta_tags_from_locales is too high. [17.29/15]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Meta tags using i18n locale files
2 participants