How to setup Root Page in Alchemy cms?

520 Views Asked by At

After installation of Alchemy cms(Ruby), getting error as 'Root page not found.'. So how to create a Root page?

2

There are 2 best solutions below

0
Kristján On

In config.rb, you use the root 'controller#action' to set root to whichever page you like. For example:

root 'home#main`

Alchemy does this for you, pointing at pages#show, which loads your root page from the database.

Make sure you've set up Alchemy according to their installation instructions, specifically running rake alchemy:install, which will seed your database with the root route.

0
tvdeyen On

Alchemy maintainer here :)

Did you setup your Database?

bin/rake alchemy:install

should've added Alchemy::Seeder.seed! into your app's db/seeds.rb.