alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Element#to_partial_path
The element's view partial is dependent from its name
== Define elements
Elements are defined in the +config/alchemy/elements.yml+ file
- name: article
contents:
...
== Override the view
Element partials live in +app/views/alchemy/elements+Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/element.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Element-to_partial_path-for-pr
# Commit to gitgit add app/models/alchemy/element.rbgit commit -m "better docs for Alchemy::Element#to_partial_path"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Element-to_partial_path-for-pr
hub pull-request
# Celebrate!