-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrading to console rework
Petr Marek edited this page Mar 8, 2019
·
4 revisions
Replace all occurances of Folio::Node (and Folio::Category, Folio::NodeTranslation) with Folio::Page.
Don't forget to check for model/controller decorators.
If not using ancestry, use
scope '/:locale', locale: /en/ do
resources :pages, only: [:show], path: ''
endReplace nested_page_path(page) with url_for(page).
Unless you have plenty of custom code, simply delete the old console controller, test and views and generate new with rails g folio:console:scaffold Namespace::Model