alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

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

Alchemy::Content#to_partial_path

The content's view partial is dependent from its name

== Define contents

Contents are defined in the +config/alchemy/elements.yml+ file

    - name: article
      contents:
      - name: headline
        type: EssenceText

== Override the view

Content partials live in +app/views/alchemy/essences+

Source | Google | Stack overflow

Edit

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

cd alchemy_cms

open app/models/alchemy/content.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--Content-to_partial_path-for-pr


# Commit to git

git add app/models/alchemy/content.rbgit commit -m "better docs for Alchemy::Content#to_partial_path"


# 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--Content-to_partial_path-for-pr

hub pull-request


# Celebrate!