alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

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

Alchemy::PagesController#load_index_page

== Loads index page

Loads the current public language root page.

If the root page is not public it loads the first published child.
This can be configured via +redirect_to_public_child+ [default: true]

If no index page and no admin users are present we show the "Welcome to Alchemy" page.

Source | Google | Stack overflow

Edit

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

cd alchemy_cms

open app/controllers/alchemy/pages_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--PagesController-load_index_page-for-pr


# Commit to git

git add app/controllers/alchemy/pages_controller.rbgit commit -m "better docs for Alchemy::PagesController#load_index_page"


# 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--PagesController-load_index_page-for-pr

hub pull-request


# Celebrate!