alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Admin::PagesController#process_url
Returns a pair, the path that a given tree node should take, and the path its children should take This function will add a node's own slug into their ancestor's path in order to create the full URL of a node NOTE: external and invisible pages are not part of the full path of their children
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/controllers/alchemy/admin/pages_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Admin--PagesController-process_url-for-pr
# Commit to gitgit add app/controllers/alchemy/admin/pages_controller.rbgit commit -m "better docs for Alchemy::Admin::PagesController#process_url"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Admin--PagesController-process_url-for-pr
hub pull-request
# Celebrate!