alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻‍♂️

Alchemy::Element::Presenters::ClassMethods#display_name_for

Human name for displaying elements in select boxes and element editor views.

The name is beeing translated from given name value as described in +config/alchemy/elements.yml+

Translate the name in your +config/locales+ language file.

== Example:

  de:
    alchemy:
      element_names:
        contactform: 'Kontakt Formular'

If no translation is found a humanized name is used.

Source | Google | Stack overflow

Edit

git clone [email protected]:magiclabs/alchemy_cms.git

cd alchemy_cms

open app/models/alchemy/element/presenters.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--Element--Presenters--ClassMethods-display_name_for-for-pr


# Commit to git

git add app/models/alchemy/element/presenters.rbgit commit -m "better docs for Alchemy::Element::Presenters::ClassMethods#display_name_for"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Alchemy--Element--Presenters--ClassMethods-display_name_for-for-pr

hub pull-request


# Celebrate!