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