Rails.application.routes.draw do # for optimacms #devise_for :cms_admin_users, class_name: "Optimacms::CmsAdminUser", module: :devise devise_for :cms_admin_users, Optimacms::Devise.config # usual devise_for :users get 'hello.html', to: 'my#hello', as: 'home' # the last!!! mount Optimacms::Engine => "/" # root to: 'home#index' # all pages #scope module: 'optimacms' do # match '*path', :to => 'pages#show', via: :all #end #, format: false # , constraints: -> (req) { !(req.fullpath =~ /^\/assets\/.*/) } end