AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
846 stars 315 forks source link

Getting Alchemy not mounted warning when using alchemy new #387

Closed HenriPodolski closed 11 years ago

HenriPodolski commented 11 years ago

When I setup a new Alchemy CMS app via alchemy new my_magicpage, I get the following warning:

Alchemy not mounted! Please mount Alchemy::Engine in your config/routes.rb file.

It could ask for the mountpoint at the CLI and add it the routes.rb file. If the mountpoint is not '/' it could add the helper Alchemy::PagesHelper to the application controller.

Any suggestions on that? Otherwise I could add a method to bin/alchemy in magiclabs/alchemy-installer, which provides this feature.

tvdeyen commented 11 years ago

This is an issue with the installer in current stable version (2.6).

It is already fixed in master. I will back port the fix in 2.6-stable and release a new gem version later this evening.

Regards

Thomas

Am 14.06.2013 um 15:33 schrieb HenriPodolski notifications@github.com:

When I setup a new Alchemy CMS app, I get to following warning:

Alchemy not mounted! Please mount Alchemy::Engine in your config/routes.rb file. Is it possible that the generator includes this to my routes.rb file?

— Reply to this email directly or view it on GitHub.

tvdeyen commented 11 years ago

A quick fix for now:

add:

mount Alchemy::Engine => '/'

into your routes file before running the installer.

Best

Thomas

Am 14.06.2013 um 15:33 schrieb HenriPodolski notifications@github.com:

When I setup a new Alchemy CMS app, I get to following warning:

Alchemy not mounted! Please mount Alchemy::Engine in your config/routes.rb file. Is it possible that the generator includes this to my routes.rb file?

— Reply to this email directly or view it on GitHub.

HenriPodolski commented 11 years ago

OK, thx.

tvdeyen commented 11 years ago

Just releases 2.6.2 that includes the fix.

Please run

gem update alchemy_cms